mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
Some style sheet adjustment, normalized context menu
(still some details to solve)
This commit is contained in:
@@ -81,11 +81,7 @@ BlackGui--CDockWidgetInfoArea[framelessDockWidget="true"] > QWidget > QFrame[doc
|
|||||||
}
|
}
|
||||||
|
|
||||||
BlackGui--CDockWidgetInfoArea[framelessDockWidget="false"] > QWidget > QFrame[dockwidget="innerwidget"] {
|
BlackGui--CDockWidgetInfoArea[framelessDockWidget="false"] > QWidget > QFrame[dockwidget="innerwidget"] {
|
||||||
|
/* void */
|
||||||
}
|
|
||||||
|
|
||||||
BlackGui--CDockWidgetInfoArea > QMenu > QMenuWidget {
|
|
||||||
border: 0px; /* reserve space for selection border */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* required when info area is not floating */
|
/* required when info area is not floating */
|
||||||
@@ -322,7 +318,7 @@ QMenuBar {
|
|||||||
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
||||||
background-color: darkslategray;
|
background-color: darkslategray;
|
||||||
padding: 5px 0px 0px 10px;
|
padding: 5px 0px 0px 10px;
|
||||||
margin: 0px 0px 20px 0px; /* removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? */
|
margin: 0px 0px 30px 0px; /* removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? */
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenuBar::item {
|
QMenuBar::item {
|
||||||
@@ -340,17 +336,31 @@ QMenuBar::item:pressed {
|
|||||||
background: black;
|
background: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlackGui--CDockWidgetInfoArea > QMenu > QMenuWidget {
|
||||||
|
border: 0px; /* reserve space for selection border */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* reset menu style */
|
||||||
QMenu {
|
QMenu {
|
||||||
border: 2px solid darkslategray; /* reserve space for selection border */
|
|
||||||
background: lightgray;
|
|
||||||
color: black;
|
color: black;
|
||||||
padding: 3px;
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu::item {
|
QMenu::item {
|
||||||
padding: 4px 25px 4px 20px;
|
padding: 4px 25px 4px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* fix margin style */
|
||||||
|
QMenu > QFrame {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
BlackGui--Components--CMarginsInput {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
QScrollArea {
|
QScrollArea {
|
||||||
border: 1px solid green;
|
border: 1px solid green;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|||||||
Reference in New Issue
Block a user