mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-21 06:59:02 +00: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:
@@ -39,17 +39,17 @@ void Channel::paint(Painter& painter) {
|
||||
const Rect r0{r.left(), r.top(), x_max, r.height()};
|
||||
painter.fill_rectangle(
|
||||
r0,
|
||||
Color::blue());
|
||||
Theme::getInstance()->fg_blue->foreground);
|
||||
|
||||
const Rect r1{r.left() + x_max, r.top(), 1, r.height()};
|
||||
painter.fill_rectangle(
|
||||
r1,
|
||||
Color::white());
|
||||
Theme::getInstance()->bg_darkest->foreground);
|
||||
|
||||
const Rect r2{r.left() + x_max + 1, r.top(), r.width() - (x_max + 1), r.height()};
|
||||
painter.fill_rectangle(
|
||||
r2,
|
||||
Color::black());
|
||||
Theme::getInstance()->fg_blue->background);
|
||||
}
|
||||
|
||||
void Channel::on_statistics_update(const ChannelStatistics& statistics) {
|
||||
|
||||
Reference in New Issue
Block a user