Mercurial > minori
comparison src/gui/pages/seasons.cc @ 295:b82841e76e79
*: better support on Windows
things now look much better in dark mode
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Sun, 12 May 2024 20:24:09 -0400 |
| parents | 9a88e1725fd2 |
| children | 2115488eb302 |
comparison
equal
deleted
inserted
replaced
| 294:99cbc51433e4 | 295:b82841e76e79 |
|---|---|
| 35 } | 35 } |
| 36 | 36 |
| 37 season_button->setText(Strings::ToQString(Translate::ToLocalString(season)) + " " + QString::number(year)); | 37 season_button->setText(Strings::ToQString(Translate::ToLocalString(season)) + " " + QString::number(year)); |
| 38 } | 38 } |
| 39 | 39 |
| 40 SeasonsPage::SeasonsPage(QWidget* parent) : QWidget(parent) { | 40 SeasonsPage::SeasonsPage(QWidget* parent) : QFrame(parent) { |
| 41 setBackgroundRole(QPalette::Base); | |
| 42 setFrameShape(QFrame::Box); | |
| 43 setFrameShadow(QFrame::Sunken); | |
| 44 | |
| 41 QVBoxLayout* full_layout = new QVBoxLayout(this); | 45 QVBoxLayout* full_layout = new QVBoxLayout(this); |
| 42 | 46 |
| 43 { | 47 { |
| 44 /* Toolbar */ | 48 /* Toolbar */ |
| 45 QToolBar* toolbar = new QToolBar(this); | 49 QToolBar* toolbar = new QToolBar(this); |
| 175 buttons->setResizeMode(QListView::Adjust); | 179 buttons->setResizeMode(QListView::Adjust); |
| 176 | 180 |
| 177 full_layout->addWidget(buttons); | 181 full_layout->addWidget(buttons); |
| 178 } | 182 } |
| 179 | 183 |
| 184 full_layout->setContentsMargins(0, 0, 0, 0); | |
| 185 full_layout->setSpacing(0); | |
| 186 | |
| 180 /* Do NOT move this up in this function, buttons HAS to be initialized */ | 187 /* Do NOT move this up in this function, buttons HAS to be initialized */ |
| 181 SetSeason(Anime::SeriesSeason::Summer, 2011); | 188 SetSeason(Anime::SeriesSeason::Summer, 2011); |
| 182 } | 189 } |
