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:
Eberhard Graether
2018-01-05 01:06:49 +01:00
parent c17f7dd3d4
commit ea8ab3df8e
21 changed files with 64 additions and 34 deletions
-10
View File
@@ -1,10 +0,0 @@
QToolTip {
background-color: #E0E0E0;
color: black;
font-size: <setting:font_size>px;
}
QMainWindow::separator {
background: <color:window/separator>;
width: 1px;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

+31
View File
@@ -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;
}