diff --git a/assets/resources.qrc b/assets/resources.qrc index 6d5a501..f9f36ed 100644 --- a/assets/resources.qrc +++ b/assets/resources.qrc @@ -17,5 +17,6 @@ camera-hot.png day-hot.png night-hot.png + slider.png diff --git a/assets/slider.png b/assets/slider.png new file mode 100644 index 0000000..f989ba4 Binary files /dev/null and b/assets/slider.png differ diff --git a/src/autoapp/UI/MainWindow.cpp b/src/autoapp/UI/MainWindow.cpp index d62cf3e..be8ac18 100644 --- a/src/autoapp/UI/MainWindow.cpp +++ b/src/autoapp/UI/MainWindow.cpp @@ -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(); diff --git a/src/autoapp/UI/mainwindow.ui b/src/autoapp/UI/mainwindow.ui index b7a35ce..d97f8a1 100644 --- a/src/autoapp/UI/mainwindow.ui +++ b/src/autoapp/UI/mainwindow.ui @@ -210,13 +210,16 @@ - 1 + 30 255 - 5 + 25 + + + 25 Qt::Horizontal