|
|
@ -238,61 +238,61 @@ private slots: |
|
|
|
//here css for trackbar
|
|
|
|
//here css for trackbar
|
|
|
|
/* from http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet */ |
|
|
|
/* from http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet */ |
|
|
|
static const QString str_Trackbar_css = QString("") |
|
|
|
static const QString str_Trackbar_css = QString("") |
|
|
|
+ "QSlider::groove:horizontal {" |
|
|
|
+ "QSlider::groove:horizontal {" |
|
|
|
+ "border: 1px solid #bbb;" |
|
|
|
+ "border: 1px solid #bbb;" |
|
|
|
+ "background: white;" |
|
|
|
+ "background: white;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::sub-page:horizontal {" |
|
|
|
+ "QSlider::sub-page:horizontal {" |
|
|
|
+ "background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," |
|
|
|
+ "background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," |
|
|
|
+ "stop: 0 #66e, stop: 1 #bbf);" |
|
|
|
+ "stop: 0 #66e, stop: 1 #bbf);" |
|
|
|
+ "background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1," |
|
|
|
+ "background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1," |
|
|
|
+ "stop: 0 #bbf, stop: 1 #55f);" |
|
|
|
+ "stop: 0 #bbf, stop: 1 #55f);" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::add-page:horizontal {" |
|
|
|
+ "QSlider::add-page:horizontal {" |
|
|
|
+ "background: #fff;" |
|
|
|
+ "background: #fff;" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "height: 10px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::handle:horizontal {" |
|
|
|
+ "QSlider::handle:horizontal {" |
|
|
|
+ "background: qlineargradient(x1:0, y1:0, x2:1, y2:1," |
|
|
|
+ "background: qlineargradient(x1:0, y1:0, x2:1, y2:1," |
|
|
|
+ "stop:0 #eee, stop:1 #ccc);" |
|
|
|
+ "stop:0 #eee, stop:1 #ccc);" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "border: 1px solid #777;" |
|
|
|
+ "width: 13px;" |
|
|
|
+ "width: 13px;" |
|
|
|
+ "margin-top: -2px;" |
|
|
|
+ "margin-top: -2px;" |
|
|
|
+ "margin-bottom: -2px;" |
|
|
|
+ "margin-bottom: -2px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::handle:horizontal:hover {" |
|
|
|
+ "QSlider::handle:horizontal:hover {" |
|
|
|
+ "background: qlineargradient(x1:0, y1:0, x2:1, y2:1," |
|
|
|
+ "background: qlineargradient(x1:0, y1:0, x2:1, y2:1," |
|
|
|
+ "stop:0 #fff, stop:1 #ddd);" |
|
|
|
+ "stop:0 #fff, stop:1 #ddd);" |
|
|
|
+ "border: 1px solid #444;" |
|
|
|
+ "border: 1px solid #444;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::sub-page:horizontal:disabled {" |
|
|
|
+ "QSlider::sub-page:horizontal:disabled {" |
|
|
|
+ "background: #bbb;" |
|
|
|
+ "background: #bbb;" |
|
|
|
+ "border-color: #999;" |
|
|
|
+ "border-color: #999;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::add-page:horizontal:disabled {" |
|
|
|
+ "QSlider::add-page:horizontal:disabled {" |
|
|
|
+ "background: #eee;" |
|
|
|
+ "background: #eee;" |
|
|
|
+ "border-color: #999;" |
|
|
|
+ "border-color: #999;" |
|
|
|
+ "}" |
|
|
|
+ "}" |
|
|
|
|
|
|
|
|
|
|
|
+ "QSlider::handle:horizontal:disabled {" |
|
|
|
+ "QSlider::handle:horizontal:disabled {" |
|
|
|
+ "background: #eee;" |
|
|
|
+ "background: #eee;" |
|
|
|
+ "border: 1px solid #aaa;" |
|
|
|
+ "border: 1px solid #aaa;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "border-radius: 4px;" |
|
|
|
+ "}"; |
|
|
|
+ "}"; |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|