mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-23 15:01: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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue