Mercurial > minori
comparison src/gui/dialog/settings/application.cc @ 232:ff0061e75f0f
theme: add OS detection with glib
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 13 Jan 2024 11:06:16 -0500 |
parents | 975a3f0965e2 |
children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
231:69f4768a820c | 232:ff0061e75f0f |
---|---|
16 | 16 |
17 #include <algorithm> | 17 #include <algorithm> |
18 | 18 |
19 QWidget* SettingsPageApplication::CreateAnimeListWidget() { | 19 QWidget* SettingsPageApplication::CreateAnimeListWidget() { |
20 QWidget* result = new QWidget(this); | 20 QWidget* result = new QWidget(this); |
21 result->setAutoFillBackground(true); | |
22 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); | 21 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); |
23 | 22 |
24 QVBoxLayout* full_layout = new QVBoxLayout(result); | 23 QVBoxLayout* full_layout = new QVBoxLayout(result); |
25 | 24 |
26 { | 25 { |
171 return result; | 170 return result; |
172 } | 171 } |
173 | 172 |
174 QWidget* SettingsPageApplication::CreateGeneralWidget() { | 173 QWidget* SettingsPageApplication::CreateGeneralWidget() { |
175 QWidget* result = new QWidget(this); | 174 QWidget* result = new QWidget(this); |
176 result->setAutoFillBackground(true); | |
177 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); | 175 result->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); |
178 | 176 |
179 QVBoxLayout* full_layout = new QVBoxLayout(result); | 177 QVBoxLayout* full_layout = new QVBoxLayout(result); |
180 | 178 |
181 { | 179 { |