From ce17ac454406f9f3f64298ada7da506b81d79a43 Mon Sep 17 00:00:00 2001 From: Colin Duquesnoy Date: Wed, 7 Nov 2012 12:26:01 +0100 Subject: [PATCH] Fix group box title to low Add tab title effect on hover Get rid of tree branches by using a fully transparent image instead of none. --- rc/transparent.png | Bin 0 -> 195 bytes style.qss | 27 ++++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 rc/transparent.png diff --git a/rc/transparent.png b/rc/transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..483df25137d1f267b9793bb6068bb58e8825f11f GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPaH#?`E`G1!eAAmx#nIRD+&iT2ysd*(pE(3#eQEFmI zYKlU6W=V#EyQgnJie4%^P+Z;9#WAGf*4u-Oyg=Te1>gO1`OFspnaH4_oY}#FfpL8m Q-wTkir>mdKI;Vst0J6j{!2kdN literal 0 HcmV?d00001 diff --git a/style.qss b/style.qss index c6b7336ac..7fe886cf1 100644 --- a/style.qss +++ b/style.qss @@ -117,9 +117,9 @@ QLineEdit } QGroupBox { - border:1px double #3A3939; + border:1px solid #3A3939; border-radius: 7px; - margin-top: 1ex; + margin-top: 2ex; } QGroupBox::title { @@ -605,15 +605,21 @@ QTabBar::tab:selected margin-bottom: 0px; background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, - stop:1 #302F2F, stop:0 #3A3939); + stop:1 #302F2F, stop:0 #5A5959); +} + +QTabBar::tab:!selected:hover +{ + color:white; } QTabBar::tab:selected:hover { + color:white; border-top-left-radius: 3px; border-top-right-radius: 3px; background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, - stop:1 #302F2F, stop:0 #3A3939); + stop:1 #302F2F, stop:0 #5A5959); } QDockWidget @@ -664,33 +670,28 @@ QTreeView, QListView, QTableView QTreeView:branch:selected, QTreeView:branch:hover { - background-color: #78879b; + background: url(%(location)s/QDarkStyleSheet/rc/transparent.png); } QTreeView::branch:has-siblings:!adjoins-item { - border-image: none; - /*border-image: url(%(location)s/QDarkStyleSheet/rc/stylesheet-vline.png) 0;*/ + border-image: url(%(location)s/QDarkStyleSheet/rc/transparent.png); } QTreeView::branch:has-siblings:adjoins-item { - border-image: none; - /*border-image: url(%(location)s/QDarkStyleSheet/rc/stylesheet-branch-more.png) 0;*/ + border-image: url(%(location)s/QDarkStyleSheet/rc/transparent.png); } QTreeView::branch:!has-children:!has-siblings:adjoins-item { - border-image: none; - /*border-image: url(%(location)s/QDarkStyleSheet/rc/stylesheet-branch-end.png) 0;*/ + border-image: url(%(location)s/QDarkStyleSheet/rc/transparent.png); } QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { - border-image: none; image: url(%(location)s/QDarkStyleSheet/rc/branch_closed.png); } QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings { - border-image: none; image: url(%(location)s/QDarkStyleSheet/rc/branch_open.png); }