Add horizontal scroll and enforce white text in console and hex views
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -13,7 +13,7 @@ pub fn render(
|
|||||||
) -> usize {
|
) -> usize {
|
||||||
let line_count = buf.len();
|
let line_count = buf.len();
|
||||||
let row_height = ui.text_style_height(&TextStyle::Monospace);
|
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,
|
ui,
|
||||||
row_height,
|
row_height,
|
||||||
line_count,
|
line_count,
|
||||||
@@ -74,6 +74,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat {
|
|||||||
.get(&TextStyle::Monospace)
|
.get(&TextStyle::Monospace)
|
||||||
.cloned()
|
.cloned()
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
|
color: Color32::WHITE,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ pub fn render(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
let row_height = ui.text_style_height(&TextStyle::Monospace);
|
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,
|
ui,
|
||||||
row_height,
|
row_height,
|
||||||
line_count,
|
line_count,
|
||||||
@@ -78,6 +78,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat {
|
|||||||
.get(&TextStyle::Monospace)
|
.get(&TextStyle::Monospace)
|
||||||
.cloned()
|
.cloned()
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
|
color: Color32::WHITE,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user