[gui] Rework brightness slider

This commit is contained in:
hawkeyexp 2018-05-25 21:53:50 +02:00
parent 2deaedbe07
commit aa5851442c
4 changed files with 10 additions and 2 deletions

View File

@ -17,5 +17,6 @@
<file>camera-hot.png</file>
<file>day-hot.png</file>
<file>night-hot.png</file>
<file>slider.png</file>
</qresource>
</RCC>

BIN
assets/slider.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -40,7 +40,11 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
QPushButton:hover { background: url(:/circle.png); } \
QPushButton:focus { background: url(:/circle.png); } \
QPushButton:pressed { background: url(:/circle-pressed.png); } \
QSlider:horizontal { background: url(:/slider.png); border: 1px solid #ffffff; border-radius: 2px; min-height: 32px;} \
QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} \
QSlider::handle:horizontal { background: white; height: 52px; width: 52px; margin: 0 0;} \
");
QFileInfo wallpaperDayFile("wallpaper.png");
bool wallpaperDayFileExists = wallpaperDayFile.exists();

View File

@ -210,13 +210,16 @@
</rect>
</property>
<property name="minimum">
<number>1</number>
<number>30</number>
</property>
<property name="maximum">
<number>255</number>
</property>
<property name="singleStep">
<number>5</number>
<number>25</number>
</property>
<property name="tickInterval">
<number>25</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>