ui: Custom style for dock widget title bars
* avoid style loading in every view on application start * improved contrast of reference label * moved Reset Window Layout action up in View menu
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
<handle>#80999999</handle>
|
||||
<line>#80999999</line>
|
||||
</scrollbar>
|
||||
<dock>
|
||||
<text>white</text>
|
||||
<background>#808080</background>
|
||||
<line>#A0A0A0</line>
|
||||
<icon_type>white</icon_type> <!-- white, grey, black -->
|
||||
</dock>
|
||||
</window>
|
||||
|
||||
<search>
|
||||
@@ -86,7 +92,7 @@
|
||||
|
||||
<navigation>
|
||||
<background>#494949</background>
|
||||
<text>#A0A0A0</text>
|
||||
<text>#CCCCCC</text>
|
||||
<line>#999</line>
|
||||
</navigation>
|
||||
|
||||
@@ -487,7 +493,7 @@
|
||||
<box>
|
||||
<background>#494949</background>
|
||||
<text>#D4D4D4</text>
|
||||
<match_label>#A0A0A0</match_label>
|
||||
<match_label>#CCCCCC</match_label>
|
||||
</box>
|
||||
<filter>white</filter>
|
||||
<button>
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
<handle>#80999999</handle>
|
||||
<line>#80999999</line>
|
||||
</scrollbar>
|
||||
<dock>
|
||||
<text>black</text>
|
||||
<background>#E0E0E0</background>
|
||||
<line>#BEBEBE</line>
|
||||
<icon_type>grey</icon_type> <!-- white, grey, black -->
|
||||
</dock>
|
||||
</window>
|
||||
|
||||
<search>
|
||||
@@ -86,7 +92,7 @@
|
||||
|
||||
<navigation>
|
||||
<background>white</background>
|
||||
<text>#A2A2A2</text>
|
||||
<text>#727272</text>
|
||||
<line>#D2D2D2</line>
|
||||
</navigation>
|
||||
|
||||
@@ -448,7 +454,7 @@
|
||||
<box>
|
||||
<background>white</background>
|
||||
<text>black</text>
|
||||
<match_label>#A0A0A0</match_label>
|
||||
<match_label>#727272</match_label>
|
||||
</box>
|
||||
<filter>black</filter>
|
||||
<button>
|
||||
|
||||
@@ -2,12 +2,18 @@
|
||||
|
||||
<config>
|
||||
<window>
|
||||
<separator>#AAA</separator>
|
||||
<separator>#CCC</separator>
|
||||
<scrollbar>
|
||||
<background>transparent</background>
|
||||
<handle>#80999999</handle>
|
||||
<line>#80999999</line>
|
||||
</scrollbar>
|
||||
<dock>
|
||||
<text>#F7F7F7</text>
|
||||
<background>#777777</background>
|
||||
<line>#A0A0A0</line>
|
||||
<icon_type>white</icon_type> <!-- white, grey, black -->
|
||||
</dock>
|
||||
</window>
|
||||
|
||||
<search>
|
||||
@@ -86,7 +92,7 @@
|
||||
|
||||
<navigation>
|
||||
<background>#272728</background>
|
||||
<text>#A0A0A0</text>
|
||||
<text>#C5C5C5</text>
|
||||
<line>#525253</line>
|
||||
</navigation>
|
||||
|
||||
@@ -458,7 +464,7 @@
|
||||
<box>
|
||||
<background>#272728</background>
|
||||
<text>#F7F7F7</text>
|
||||
<match_label>#A0A0A0</match_label>
|
||||
<match_label>#C5C5C5</match_label>
|
||||
</box>
|
||||
<filter>#F7F7F7</filter>
|
||||
<button>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>px;
|
||||
}
|
||||
|
||||
QMainWindow::separator {
|
||||
background: <color:window/separator>;
|
||||
width: 1px;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1022 B |
@@ -0,0 +1,31 @@
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>px;
|
||||
}
|
||||
|
||||
QMainWindow::separator {
|
||||
background: <color:window/separator>;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
QDockWidget {
|
||||
color: <color:window/dock/text>;
|
||||
font-size: 10pt;
|
||||
titlebar-close-icon: url(<setting:gui_path>main/images/close_<color:window/dock/icon_type>.png);
|
||||
titlebar-normal-icon: url(<setting:gui_path>main/images/float_<color:window/dock/icon_type>.png);
|
||||
}
|
||||
|
||||
QDockWidget::title {
|
||||
border-bottom: 1px solid <color:window/dock/line>;
|
||||
background: <color:window/dock/background>;
|
||||
text-align: center;
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
QDockWidget::close-button, QDockWidget::float-button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
icon-size: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
Reference in New Issue
Block a user