[gui] Rework brightness slider
This commit is contained in:
parent
2deaedbe07
commit
aa5851442c
@ -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
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: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();
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user