Merge pull request #6720 from Tatsuya79/patch-7

QT QSlider styling
This commit is contained in:
Twinaphex 2018-05-04 22:38:42 +02:00 committed by GitHub
commit 9e0a3f0794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,24 +324,44 @@ static const QString qt_theme_dark_stylesheet = QStringLiteral(""
" subcontrol-position:top;\n"
" subcontrol-origin:margin;\n"
"}\n"
"QSlider::handle:horizontal {\n"
" border-radius:4px;\n"
" border:1px solid rgba(25,25,25,255);\n"
" background-color:palette(alternate-base);\n"
" min-height:20px;\n"
"QSlider::sub-page {\n"
" background:%1;\n"
"}\n"
"QSlider::groove:vertical {\n"
" width:3px;\n"
" background:rgb(25,25,25);\n"
"}\n"
"QSlider::handle:vertical {\n"
" background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 rgb(175,175,175), stop: 1 rgb(75,75,75));\n"
" border:1px solid rgb(35,35,35);\n"
" border-radius:2px;\n"
" height:16px;\n"
" margin:0 -4px;\n"
"}\n"
"QSlider::handle:vertical:hover {\n"
" background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 rgb(200,200,200), stop: 1 rgba(100,100,100));\n"
" border:1px solid %1;\n"
" border-radius:2px;\n"
" height:16px;\n"
" margin:0 -4px;\n"
"}\n"
"QSlider::groove:horizontal {\n"
" height:3px;\n"
" background:rgb(25,25,25);\n"
"}\n"
"QSlider::handle:horizontal {\n"
" background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 rgb(175,175,175), stop: 1 rgb(75,75,75));\n"
" border:1px solid rgb(35,35,35);\n"
" border-radius:2px;\n"
" width:16px;\n"
" margin:-4px 0;\n"
"}\n"
"QSlider::handle:horizontal:hover {\n"
" background-color:%1;\n"
"}\n"
"QSlider::add-page:horizontal {\n"
" background-color:palette(base);\n"
"}\n"
"QSlider::sub-page:horizontal {\n"
" background-color:%1;\n"
"}\n"
"QSlider::sub-page:horizontal:disabled {\n"
" background-color:rgb(80,80,80);\n"
" background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 rgb(200,200,200), stop: 1 rgba(100,100,100));\n"
" border:1px solid %1;\n"
" border-radius:2px;\n"
" width:16px;\n"
" margin:-4px 0;\n"
"}\n"
"QStatusBar {\n"
" color:white;\n"