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:
Totoo 2024-05-27 21:02:52 +02:00 committed by GitHub
parent a8203a6372
commit ced8012783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
143 changed files with 1566 additions and 1154 deletions

View file

@ -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) {