Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
104:27455104ea37 | 105:6d8da6e64d61 |
---|---|
40 setFixedSize(842, 613); | 40 setFixedSize(842, 613); |
41 setWindowTitle(tr("Anime Information")); | 41 setWindowTitle(tr("Anime Information")); |
42 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); | 42 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); |
43 | 43 |
44 { | 44 { |
45 QPalette pal(palette()); | 45 QPalette pal; |
46 pal.setColor(QPalette::Window, pal.color(QPalette::Base)); | 46 pal.setColor(QPalette::Window, pal.color(QPalette::Base)); |
47 setPalette(pal); | 47 setPalette(pal); |
48 } | 48 } |
49 | 49 |
50 QWidget* widget = new QWidget(this); | 50 QWidget* widget = new QWidget(this); |
70 QTabWidget* tabbed_widget = new QTabWidget(main_widget); | 70 QTabWidget* tabbed_widget = new QTabWidget(main_widget); |
71 tabbed_widget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); | 71 tabbed_widget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); |
72 | 72 |
73 /* main info tab */ | 73 /* main info tab */ |
74 AnimeInfoWidget* main_information_widget = new AnimeInfoWidget(anime, tabbed_widget); | 74 AnimeInfoWidget* main_information_widget = new AnimeInfoWidget(anime, tabbed_widget); |
75 | |
76 { | |
77 QPalette pal(main_information_widget->palette()); | |
78 pal.setColor(QPalette::Base, pal.color(QPalette::Window)); | |
79 main_information_widget->setPalette(pal); | |
80 } | |
81 | 75 |
82 QWidget* settings_widget = new QWidget(tabbed_widget); | 76 QWidget* settings_widget = new QWidget(tabbed_widget); |
83 settings_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); | 77 settings_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); |
84 | 78 |
85 QVBoxLayout* settings_layout = new QVBoxLayout(settings_widget); | 79 QVBoxLayout* settings_layout = new QVBoxLayout(settings_widget); |