mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 17:49:14 -04:00
Theme system (#2164)
* Themes instead of Styles * Colors changed to theme colors * Reworked style management * Theme settings app * warn, menu dual set * Added Aqua style
This commit is contained in:
parent
a8203a6372
commit
ced8012783
143 changed files with 1566 additions and 1154 deletions
|
@ -99,20 +99,20 @@ void RangeView::paint(Painter&) {
|
|||
r = button_center.screen_rect();
|
||||
p = r.center() + Point(0, r.height() / 2);
|
||||
|
||||
display.draw_line(p, p + Point(0, 10), Color::grey());
|
||||
display.draw_line(p, p + Point(0, 10), Theme::getInstance()->fg_medium->foreground);
|
||||
|
||||
r = button_width.screen_rect();
|
||||
c = r.top() + (r.height() / 2);
|
||||
|
||||
p = {r.left() - 64, c};
|
||||
display.draw_line({r.left(), c}, p, Color::grey());
|
||||
display.draw_line(p, p + Point(10, -10), Color::grey());
|
||||
display.draw_line(p, p + Point(10, 10), Color::grey());
|
||||
display.draw_line({r.left(), c}, p, Theme::getInstance()->fg_medium->foreground);
|
||||
display.draw_line(p, p + Point(10, -10), Theme::getInstance()->fg_medium->foreground);
|
||||
display.draw_line(p, p + Point(10, 10), Theme::getInstance()->fg_medium->foreground);
|
||||
|
||||
p = {r.right() + 64, c};
|
||||
display.draw_line({r.right(), c}, p, Color::grey());
|
||||
display.draw_line(p, p + Point(-10, -10), Color::grey());
|
||||
display.draw_line(p, p + Point(-10, 10), Color::grey());
|
||||
display.draw_line({r.right(), c}, p, Theme::getInstance()->fg_medium->foreground);
|
||||
display.draw_line(p, p + Point(-10, -10), Theme::getInstance()->fg_medium->foreground);
|
||||
display.draw_line(p, p + Point(-10, 10), Theme::getInstance()->fg_medium->foreground);
|
||||
}
|
||||
|
||||
RangeView::RangeView(NavigationView& nav) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue