Fixed style sheet

This commit is contained in:
Klaus Basan
2014-12-22 21:17:24 +01:00
parent b26fa651ed
commit 8fce90065d
2 changed files with 26 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
Useful blocks, currently not used but saved for future
/** required when dock widget is floating **/
/** background-image not working on QDockWidget, so I use direct children **/
#sw_MainMiddle QDockWidget {
background-color: black;
}
#sw_MainMiddle QDockWidget > QWidget {
background-color: black;
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}

View File

@@ -19,15 +19,24 @@ QMainWindow {
/** required when dock widget is floating **/
/** background-image not working on QDockWidget, so I use direct children **/
#sw_MainMiddle QDockWidget {
background-color: black;
}
#sw_MainMiddle QDockWidget > QWidget {
#sw_MainMiddle BlackGui--CDockWidgetInfoArea {
background-color: black;
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}
#sw_MainMiddle BlackGui--CDockWidgetInfoArea > QWidget {
background-color: black;
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}
/** fix the menu, which is overridden by the above QWidget **/
#sw_MainMiddle BlackGui--CDockWidgetInfoArea > QMenu {
border: 2px solid darkslategray; /* reserve space for selection border */
background: lightgray;
color: black;
padding: 2px;
}
/** required when info area is not floating **/
BlackGui--CInfoArea {
background: black; /** background is background color here **/