mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Fixed style sheet
This commit is contained in:
12
src/blackgui/qss/_buildingblocks.qss
Normal file
12
src/blackgui/qss/_buildingblocks.qss
Normal 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);
|
||||
}
|
||||
@@ -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 **/
|
||||
|
||||
Reference in New Issue
Block a user