Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/src/gui/pages/seasons.cc Sun May 12 18:16:08 2024 -0400 +++ b/src/gui/pages/seasons.cc Sun May 12 20:24:09 2024 -0400 @@ -37,7 +37,11 @@ season_button->setText(Strings::ToQString(Translate::ToLocalString(season)) + " " + QString::number(year)); } -SeasonsPage::SeasonsPage(QWidget* parent) : QWidget(parent) { +SeasonsPage::SeasonsPage(QWidget* parent) : QFrame(parent) { + setBackgroundRole(QPalette::Base); + setFrameShape(QFrame::Box); + setFrameShadow(QFrame::Sunken); + QVBoxLayout* full_layout = new QVBoxLayout(this); { @@ -177,6 +181,9 @@ full_layout->addWidget(buttons); } + full_layout->setContentsMargins(0, 0, 0, 0); + full_layout->setSpacing(0); + /* Do NOT move this up in this function, buttons HAS to be initialized */ SetSeason(Anime::SeriesSeason::Summer, 2011); }