From 316cd0da764cd0ac68a06f6e4536b637f9b7bb61 Mon Sep 17 00:00:00 2001 From: Davide Facont Date: Sun, 20 Jan 2019 15:56:38 +0100 Subject: [PATCH] fix slider stylesheet --- plotter_gui/style/stylesheet.qss | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/plotter_gui/style/stylesheet.qss b/plotter_gui/style/stylesheet.qss index 269c44815..49e7623b1 100644 --- a/plotter_gui/style/stylesheet.qss +++ b/plotter_gui/style/stylesheet.qss @@ -310,6 +310,50 @@ QComboBox QAbstractItemView::item:hover { background-color: blue; } +/* QSlider ---------------------------------------------------------------- */ + +QSlider:disabled { + background: white; +} + +QSlider:focus { + border: none; +} + +QSlider::groove:horizontal { + background: white; + border: 1px solid #32414B; + height: 8px; + margin: 0px; + border-radius: 4px; +} + +QSlider::sub-page:horizontal { + background: #1464A0; + border: 1px solid #32414B; + height: 4px; + margin: 0px; + border-radius: 4px; +} + +QSlider::sub-page:horizontal:disabled { + background: #14506E; +} + +QSlider::handle:horizontal { + background: #787878; + border: 1px solid #32414B; + width: 8px; + height: 8px; + margin: -8px 0; + border-radius: 4px; +} + +QSlider::handle:horizontal:hover { + background: #148CD2; + border: 1px solid #148CD2; +} +