mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Add color to position info lines in Notepad (#1902)
This commit is contained in:
parent
44c319dcc6
commit
b5ac792853
@ -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]() {
|
||||||
|
@ -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(),
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user