Add color to position info lines in Notepad (#1902)

This commit is contained in:
Mark Thompson 2024-02-15 11:12:40 -06:00 committed by GitHub
parent 44c319dcc6
commit b5ac792853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -427,6 +427,9 @@ TextEditorView::TextEditorView(NavigationView& nav)
&text_size, &text_size,
}); });
text_position.set_style(&Styles::bg_dark_blue);
text_size.set_style(&Styles::bg_dark_blue);
viewer.set_font_zoom(enable_zoom); viewer.set_font_zoom(enable_zoom);
viewer.on_select = [this]() { viewer.on_select = [this]() {

View File

@ -86,6 +86,12 @@ const Style Styles::bg_blue{
.foreground = Color::white(), .foreground = Color::white(),
}; };
const Style Styles::bg_dark_blue{
.font = font::fixed_8x16,
.background = Color::dark_blue(),
.foreground = Color::white(),
};
const Style Styles::light_grey{ const Style Styles::light_grey{
.font = font::fixed_8x16, .font = font::fixed_8x16,
.background = Color::black(), .background = Color::black(),

View File

@ -58,6 +58,9 @@ class Styles {
/* Blue background. */ /* Blue background. */
static const Style bg_blue; static const Style bg_blue;
/* Dark blue background. */
static const Style bg_dark_blue;
/* Light grey foreground. */ /* Light grey foreground. */
static const Style light_grey; static const Style light_grey;