diff --git a/styles/styles.qss b/styles/styles.qss index 76f462b..e9106eb 100644 --- a/styles/styles.qss +++ b/styles/styles.qss @@ -139,42 +139,39 @@ QTextEdit#info_text { color: rgb(255, 255, 255); } -QSlider::groove:horizontal { - border: 1px inset #1C1C1C; - height: 6px; - border-radius: 3px; +QSlider { + height: 35px; } QSlider::groove:horizontal { - border: 1px inset #1C1C1C; - height: 6px; - border-radius: 3px; + border: 1px solid #1C1C1C; + height: 8px; + background: #7D7D7D; + border-radius: 4px; } QSlider::sub-page:horizontal { - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #12b9ff, stop: 1.0 #015eea); - border: 1px inset #1C1C1C; - border-radius: 3px; -} - -/* groove background on right of slider */ -QSlider::add-page:horizontal { - background: #7D7D7D; - border: 1px outset #1C1C1C; - border-radius: 3px; + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #12b9ff, stop: 1.0 #015eea); + border: 1px solid #1C1C1C; + border-radius: 4px; } QSlider::handle:horizontal { - /*background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 rgb(78, 195, 146), stop:1 rgb(57, 144, 107)); - border: 1px solid rgb(78, 195, 146); - width: 12px; - height: 10px; - margin-top: -8px; - margin-bottom: -8px; - border-radius: 2px;*/ - background: transparent; - width: 0px; - height: 0px; - image: none; - border: none; + background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FF8C00, stop:1 #FF5E00); + border: 1px solid #B34700; + width: 16px; + height: 16px; + margin: -5px 0; /* Ajusté pour centrer 16px sur barre de 8px */ + border-radius: 8px; /* Moitié exacte de width/height */ +} + +/* On répète les propriétés cruciales pour les états survolés/pressés */ +QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFA500, stop:1 #FF7F00); + border-radius: 8px; +} + +QSlider::handle:horizontal:pressed { + background: #E65100; + border-radius: 8px; }