[gui] Rework brightness slider
This commit is contained in:
parent
2deaedbe07
commit
aa5851442c
@ -17,5 +17,6 @@
|
|||||||
<file>camera-hot.png</file>
|
<file>camera-hot.png</file>
|
||||||
<file>day-hot.png</file>
|
<file>day-hot.png</file>
|
||||||
<file>night-hot.png</file>
|
<file>night-hot.png</file>
|
||||||
|
<file>slider.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
assets/slider.png
Normal file
BIN
assets/slider.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
@ -40,7 +40,11 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
|
|||||||
QPushButton:hover { background: url(:/circle.png); } \
|
QPushButton:hover { background: url(:/circle.png); } \
|
||||||
QPushButton:focus { background: url(:/circle.png); } \
|
QPushButton:focus { background: url(:/circle.png); } \
|
||||||
QPushButton:pressed { background: url(:/circle-pressed.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");
|
QFileInfo wallpaperDayFile("wallpaper.png");
|
||||||
bool wallpaperDayFileExists = wallpaperDayFile.exists();
|
bool wallpaperDayFileExists = wallpaperDayFile.exists();
|
||||||
|
|
||||||
|
@ -210,13 +210,16 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>30</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>255</number>
|
<number>255</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="singleStep">
|
<property name="singleStep">
|
||||||
<number>5</number>
|
<number>25</number>
|
||||||
|
</property>
|
||||||
|
<property name="tickInterval">
|
||||||
|
<number>25</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user