Mercurial > minori
diff src/gui/dialog/information.cc @ 105:6d8da6e64d61
theme: add dark stylesheet, make it actually usable
win32: make the titlebar black where available
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 03:54:26 -0500 |
parents | e6fab256ddc4 |
children | 2004b41d4a59 |
line wrap: on
line diff
--- a/src/gui/dialog/information.cc Sun Nov 05 02:35:27 2023 -0500 +++ b/src/gui/dialog/information.cc Sun Nov 05 03:54:26 2023 -0500 @@ -42,7 +42,7 @@ setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); { - QPalette pal(palette()); + QPalette pal; pal.setColor(QPalette::Window, pal.color(QPalette::Base)); setPalette(pal); } @@ -73,12 +73,6 @@ /* main info tab */ AnimeInfoWidget* main_information_widget = new AnimeInfoWidget(anime, tabbed_widget); - { - QPalette pal(main_information_widget->palette()); - pal.setColor(QPalette::Base, pal.color(QPalette::Window)); - main_information_widget->setPalette(pal); - } - QWidget* settings_widget = new QWidget(tabbed_widget); settings_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);