diff --git a/crates/xserial-gui/src/panels/console.rs b/crates/xserial-gui/src/panels/console.rs index 2bc0750..353c6c9 100644 --- a/crates/xserial-gui/src/panels/console.rs +++ b/crates/xserial-gui/src/panels/console.rs @@ -13,7 +13,7 @@ pub fn render( ) -> usize { let line_count = buf.len(); let row_height = ui.text_style_height(&TextStyle::Monospace); - ScrollArea::vertical().stick_to_bottom(true).show_rows( + ScrollArea::both().stick_to_bottom(true).show_rows( ui, row_height, line_count, @@ -74,6 +74,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat { .get(&TextStyle::Monospace) .cloned() .unwrap_or_default(), + color: Color32::WHITE, ..Default::default() } } diff --git a/crates/xserial-gui/src/panels/hex_view.rs b/crates/xserial-gui/src/panels/hex_view.rs index 5909c27..e737f13 100644 --- a/crates/xserial-gui/src/panels/hex_view.rs +++ b/crates/xserial-gui/src/panels/hex_view.rs @@ -17,7 +17,7 @@ pub fn render( return 0; } let row_height = ui.text_style_height(&TextStyle::Monospace); - ScrollArea::vertical().stick_to_bottom(true).show_rows( + ScrollArea::both().stick_to_bottom(true).show_rows( ui, row_height, line_count, @@ -78,6 +78,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat { .get(&TextStyle::Monospace) .cloned() .unwrap_or_default(), + color: Color32::WHITE, ..Default::default() } }