Retour du QSlider handle via QSS

This commit is contained in:
2026-03-12 14:47:42 +01:00
parent c532fbe137
commit b2ba3964d3

View File

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