theming tweaks:

px sizes in .qss for more consistent relative sizing
replace statusbar icons color to make them visible in light theme
#296 #297
This commit is contained in:
Garux
2026-08-25 05:33:17 +05:00
parent be3b369ec4
commit 449778b384
7 changed files with 183 additions and 101 deletions
+1
View File
@@ -61,6 +61,7 @@ void Bitmaps_generateLight( const char *appPath, const char *settingsPath ){
QByteArray data( file.readAll() );
if( fileinfo.suffix() == "svg" ){
data.replace( "#c0c0c0", "#808080" ); // main grey
data.replace( "#8E8E8F", "#656565" ); // statusbar grey
data.replace( "#f2d230", "#ccb128" ); // yellow in f-sky
}
QFile outfile( to.absolutePath() + '/' + fileinfo.fileName() );
+2 -2
View File
@@ -2,6 +2,6 @@
<!-- Generator: Adobe Illustrator 27.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<rect x="34.27" y="23.26" fill="none" stroke="#8E8E8E" stroke-width="11.0116" stroke-miterlimit="10" width="88.09" height="28.63"/>
<rect x="5.64" y="76.11" fill="none" stroke="#8E8E8E" stroke-width="11.0116" stroke-miterlimit="10" width="88.09" height="28.63"/>
<rect x="34.27" y="23.26" fill="none" stroke="#8E8E8F" stroke-width="11.0116" stroke-miterlimit="10" width="88.09" height="28.63"/>
<rect x="5.64" y="76.11" fill="none" stroke="#8E8E8F" stroke-width="11.0116" stroke-miterlimit="10" width="88.09" height="28.63"/>
</svg>

Before

Width:  |  Height:  |  Size: 619 B

After

Width:  |  Height:  |  Size: 619 B

+5 -5
View File
@@ -2,13 +2,13 @@
<!-- Generator: Adobe Illustrator 27.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<path fill="none" stroke="#8E8E8E" stroke-width="12.0792" stroke-miterlimit="10" d="M114.77,73.7c0-12.08,0-24.16,0-36.24
<path fill="none" stroke="#8E8E8F" stroke-width="12.0792" stroke-miterlimit="10" d="M114.77,73.7c0-12.08,0-24.16,0-36.24
C105.1,27,95.44,16.51,85.78,6.05c-26.57,0-53.15,0-79.72,0c0,24.96,0,52.35,0,77.31c11.28,11.28,20.12,20.12,31.41,31.41
c11.28,0,24.96,0,36.24,0"/>
<path fill="none" stroke="#8E8E8E" stroke-width="12.0792" stroke-miterlimit="10" d="M114.77,37.46H37.46c0,25.78,0,50.32,0,76.1"
<path fill="none" stroke="#8E8E8F" stroke-width="12.0792" stroke-miterlimit="10" d="M114.77,37.46H37.46c0,25.78,0,50.32,0,76.1"
/>
<line fill="none" stroke="#8E8E8E" stroke-width="12.0792" stroke-miterlimit="10" x1="37.46" y1="37.46" x2="6.05" y2="6.05"/>
<line fill="none" stroke="#8E8E8E" stroke-width="12.0792" stroke-miterlimit="10" x1="73.7" y1="73.7" x2="100.27" y2="100.27"/>
<path fill="#8E8E8E" d="M128.05,128.05c0-12.88,0-25.78,0-38.65c-2.42,0-4.83,0-7.25,0c-0.39,21.07-11.21,31.16-31.41,31.41
<line fill="none" stroke="#8E8E8F" stroke-width="12.0792" stroke-miterlimit="10" x1="37.46" y1="37.46" x2="6.05" y2="6.05"/>
<line fill="none" stroke="#8E8E8F" stroke-width="12.0792" stroke-miterlimit="10" x1="73.7" y1="73.7" x2="100.27" y2="100.27"/>
<path fill="#8E8E8F" d="M128.05,128.05c0-12.88,0-25.78,0-38.65c-2.42,0-4.83,0-7.25,0c-0.39,21.07-11.21,31.16-31.41,31.41
c0,2.42,0,4.83,0,7.25C102.28,128.05,115.18,128.05,128.05,128.05z"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+4 -4
View File
@@ -3,10 +3,10 @@
<svg version="1.1" id="Layer_2_00000010285020309092928050000007673203670692608641_"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128"
enable-background="new 0 0 128 128" xml:space="preserve">
<line fill="none" stroke="#8E8E8E" stroke-width="13.2414" stroke-miterlimit="10" x1="35.31" y1="11.03" x2="128" y2="11.03"/>
<line fill="none" stroke="#8E8E8E" stroke-width="13.2414" stroke-miterlimit="10" x1="92.69" y1="116.96" x2="0" y2="116.96"/>
<path fill="none" stroke="#8E8E8E" stroke-width="11.0345" stroke-miterlimit="10" d="M5.78,117.13L5.52,82.75
<line fill="none" stroke="#8E8E8F" stroke-width="13.2414" stroke-miterlimit="10" x1="35.31" y1="11.03" x2="128" y2="11.03"/>
<line fill="none" stroke="#8E8E8F" stroke-width="13.2414" stroke-miterlimit="10" x1="92.69" y1="116.96" x2="0" y2="116.96"/>
<path fill="none" stroke="#8E8E8F" stroke-width="11.0345" stroke-miterlimit="10" d="M5.78,117.13L5.52,82.75
c4.41-17.66,30.9-19.86,35.31-37.52v-33.1"/>
<path fill="none" stroke="#8E8E8E" stroke-width="11.0345" stroke-miterlimit="10" d="M87.17,115.85v-33.1
<path fill="none" stroke="#8E8E8F" stroke-width="11.0345" stroke-miterlimit="10" d="M87.17,115.85v-33.1
c2.21-22.07,35.31-26.48,35.31-44.14V12.13"/>
</svg>

Before

Width:  |  Height:  |  Size: 968 B

After

Width:  |  Height:  |  Size: 968 B

+49 -30
View File
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------------
NAME: "BlenderDark" Style Sheet
VERSION: 1.0
VERSION: 1.1
LICENSE: GPL v2
ABOUT: This is a Qt style sheet for "NetRadiant-Custom" application.
@@ -161,7 +161,7 @@ QGroupBox {
outline: none; /* visible in focused [Title] */
margin-top: 1.10em; /* add space for [Title] */
margin-top: 25px; /* 1.10em; */ /* add space for [Title] */
}
QGroupBox:off, QGroupBox:disabled {
@@ -1136,6 +1136,11 @@ QListView::item:selected:!active {
background: rgba( 225, 146, 46, 50% ); /* Main ORANGE + Alpha */
}
QListView::item:selected:hover:!active {
color: rgb( 26, 26, 26 ); /* Dark TEXT */
background: rgb( 225, 146, 46 ); /* Main ORANGE */
}
QListView::item:disabled {
color: rgba( 230, 230, 230, 50% ); /* Disabled TEXT */
}
@@ -1204,6 +1209,11 @@ QTableView::item:selected:!active {
background: rgba( 225, 146, 46, 50% ); /* Main ORANGE + Alpha */
}
QTableView::item:selected:hover:!active {
color: rgb( 26, 26, 26 ); /* Dark TEXT */
background: rgb( 225, 146, 46 ); /* Main ORANGE */
}
QTableView::item:disabled {
color: rgba( 230, 230, 230, 50% ); /* Disabled TEXT */
}
@@ -1266,8 +1276,13 @@ QTreeView::item:selected:hover {
}
QTreeView::item:selected:!active {
/* color: rgb( 26, 26, 26 ); */ /* Dark TEXT */
/* background: rgba( 225, 146, 46, 50% ); */ /* Main ORANGE + Alpha */
color: rgb( 26, 26, 26 ); /* Dark TEXT */
background: rgba( 225, 146, 46, 50% ); /* Main ORANGE + Alpha */
}
QTreeView::item:selected:hover:!active {
color: rgb( 26, 26, 26 ); /* Dark TEXT */
background: rgb( 225, 146, 46 ); /* Main ORANGE */
}
QTreeView::item:disabled {
@@ -1637,8 +1652,8 @@ QCheckBox::indicator {
border-radius: 0px;
padding: 0px;
width: 20px;
height: 20px;
width: 20px; /* width: 0.85em; */
height: 20px; /* width: 0.85em; */
}
QCheckBox::indicator:checked {
@@ -1705,8 +1720,8 @@ QRadioButton::indicator {
border-radius: 0px;
padding: 0px;
width: 20px;
height: 20px;
width: 20px; /* width: 0.85em; */
height: 20px; /* width: 0.85em; */
}
QRadioButton::indicator:checked {
@@ -1770,6 +1785,10 @@ QPushButton {
min-width: 3em;
}
QTabWidget QPushButton {
min-width: 3.5em; /* prevent buttons from shrinking too much in EI */
}
QPushButton:hover {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgb( 101, 101, 101 ); /* Button BKGR (hover) */
@@ -1894,8 +1913,8 @@ QSpinBox, QDoubleSpinBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 202, 130, 39 ); /* Dark ORANGE */
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QSpinBox {
@@ -1938,8 +1957,8 @@ QSpinBox::up-button, QDoubleSpinBox::up-button {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center right; /* TOP, bottom, left, RIGHT, center */
width: 0.85em;
height: 1.15em;
width: 20px; /* 0.85em; */
height: 26px; /* 1.15em; */
}
QSpinBox::down-button, QDoubleSpinBox::down-button {
@@ -1953,8 +1972,8 @@ QSpinBox::down-button, QDoubleSpinBox::down-button {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center left; /* top, BOTTOM, left, RIGHT, center */
width: 0.85em;
height: 1.15em;
width: 20px; /* 0.85em; */
height: 26px; /* 1.15em; */
}
QSpinBox::up-button:hover, QDoubleSpinBox::up-button:hover {
@@ -2003,8 +2022,8 @@ QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
subcontrol-origin: border;
subcontrol-position: center center;
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
@@ -2013,8 +2032,8 @@ QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
subcontrol-origin: border;
subcontrol-position: center center;
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QSpinBox::up-arrow:hover, QDoubleSpinBox::up-arrow:hover {
@@ -2028,15 +2047,15 @@ QSpinBox::down-arrow:hover, QDoubleSpinBox::down-arrow:hover {
QSpinBox::up-arrow:pressed, QDoubleSpinBox::up-arrow:pressed {
image: url(julius:themes/blenderdark/chevron_right.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::down-arrow:pressed, QDoubleSpinBox::down-arrow:pressed {
image: url(julius:themes/blenderdark/chevron_left.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::up-arrow:disabled, QDoubleSpinBox::up-arrow:disabled {
@@ -2074,8 +2093,8 @@ QLineEdit {
min-width: 2.80em;
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QLineEdit:hover {
@@ -2122,8 +2141,8 @@ QComboBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 202, 130, 39 ); /* Dark ORANGE */
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QComboBox:hover {
@@ -2163,7 +2182,7 @@ QComboBox::drop-down {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center right; /* TOP, bottom, left, RIGHT, center */
width: 0.85em;
width: 20px; /* 0.85em; */
}
/* -- Arrow -- */
@@ -2171,8 +2190,8 @@ QComboBox::drop-down {
QComboBox::down-arrow {
image: url(julius:themes/blenderdark/combo_arrow.svg);
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QComboBox::down-arrow:hover {
@@ -2231,7 +2250,7 @@ QComboBox::item {
border-radius: 4px;
padding: 0px;
max-height: 1.0em; /* it takes full window height if not set */
max-height: 23px; /* 1.0em; */ /* it takes full window height if not set */
}
QComboBox::item:selected {
+49 -30
View File
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------------
NAME: "BlenderLight" Style Sheet
VERSION: 1.0
VERSION: 1.1
LICENSE: GPL v2
ABOUT: This is a Qt style sheet for "NetRadiant-Custom" application.
@@ -161,7 +161,7 @@ QGroupBox {
outline: none; /* visible in focused [Title] */
margin-top: 1.10em; /* add space for [Title] */
margin-top: 25px; /* 1.10em; */ /* add space for [Title] */
}
QGroupBox:off, QGroupBox:disabled {
@@ -1136,6 +1136,11 @@ QListView::item:selected:!active {
background: rgba( 86, 128, 194, 50% ); /* Main BLUE + Alpha */
}
QListView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgb( 86, 128, 194 ); /* Main BLUE */
}
QListView::item:disabled {
color: rgba( 26, 26, 26, 50% ); /* Disabled TEXT */
}
@@ -1204,6 +1209,11 @@ QTableView::item:selected:!active {
background: rgba( 86, 128, 194, 50% ); /* Main BLUE + Alpha */
}
QTableView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgb( 86, 128, 194 ); /* Main BLUE */
}
QTableView::item:disabled {
color: rgba( 26, 26, 26, 50% ); /* Disabled TEXT */
}
@@ -1266,8 +1276,13 @@ QTreeView::item:selected:hover {
}
QTreeView::item:selected:!active {
/* color: rgb( 255, 255, 255 ); */ /* Selected TEXT */
/* background: rgba( 86, 128, 194, 50% ); */ /* Main BLUE + Alpha */
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgba( 86, 128, 194, 50% ); /* Main BLUE + Alpha */
}
QTreeView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgb( 86, 128, 194 ); /* Main BLUE */
}
QTreeView::item:disabled {
@@ -1637,8 +1652,8 @@ QCheckBox::indicator {
border-radius: 0px;
padding: 0px;
width: 20px;
height: 20px;
width: 20px; /* width: 0.85em; */
height: 20px; /* width: 0.85em; */
}
QCheckBox::indicator:checked {
@@ -1705,8 +1720,8 @@ QRadioButton::indicator {
border-radius: 0px;
padding: 0px;
width: 20px;
height: 20px;
width: 20px; /* width: 0.85em; */
height: 20px; /* width: 0.85em; */
}
QRadioButton::indicator:checked {
@@ -1770,6 +1785,10 @@ QPushButton {
min-width: 3em;
}
QTabWidget QPushButton {
min-width: 3.5em; /* prevent buttons from shrinking too much in EI */
}
QPushButton:hover {
color: rgb( 26, 26, 26 ); /* Main TEXT */
background: rgb( 241, 241, 241 ); /* Button BKGR (hover) */
@@ -1894,8 +1913,8 @@ QSpinBox, QDoubleSpinBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 86, 128, 194 ); /* Main BLUE */
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QSpinBox {
@@ -1938,8 +1957,8 @@ QSpinBox::up-button, QDoubleSpinBox::up-button {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center right; /* TOP, bottom, left, RIGHT, center */
width: 0.85em;
height: 1.15em;
width: 20px; /* 0.85em; */
height: 26px; /* 1.15em; */
}
QSpinBox::down-button, QDoubleSpinBox::down-button {
@@ -1953,8 +1972,8 @@ QSpinBox::down-button, QDoubleSpinBox::down-button {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center left; /* top, BOTTOM, left, RIGHT, center */
width: 0.85em;
height: 1.15em;
width: 20px; /* 0.85em; */
height: 26px; /* 1.15em; */
}
QSpinBox::up-button:hover, QDoubleSpinBox::up-button:hover {
@@ -2003,8 +2022,8 @@ QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
subcontrol-origin: border;
subcontrol-position: center center;
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
@@ -2013,8 +2032,8 @@ QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
subcontrol-origin: border;
subcontrol-position: center center;
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QSpinBox::up-arrow:hover, QDoubleSpinBox::up-arrow:hover {
@@ -2028,15 +2047,15 @@ QSpinBox::down-arrow:hover, QDoubleSpinBox::down-arrow:hover {
QSpinBox::up-arrow:pressed, QDoubleSpinBox::up-arrow:pressed {
image: url(julius:themes/blenderlight/chevron_right.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::down-arrow:pressed, QDoubleSpinBox::down-arrow:pressed {
image: url(julius:themes/blenderlight/chevron_left.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::up-arrow:disabled, QDoubleSpinBox::up-arrow:disabled {
@@ -2074,8 +2093,8 @@ QLineEdit {
min-width: 2.80em;
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QLineEdit:hover {
@@ -2122,8 +2141,8 @@ QComboBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 86, 128, 194 ); /* Main BLUE */
min-height: 1.15em; /* sets a fixed height */
max-height: 1.15em;
min-height: 26px; /* 1.15em; */ /* sets a fixed height */
max-height: 26px; /* 1.15em; */
}
QComboBox:hover {
@@ -2163,7 +2182,7 @@ QComboBox::drop-down {
subcontrol-origin: border; /* margin, border, PADDING, content */
subcontrol-position: center right; /* TOP, bottom, left, RIGHT, center */
width: 0.85em;
width: 20px; /* 0.85em; */
}
/* -- Arrow -- */
@@ -2171,8 +2190,8 @@ QComboBox::drop-down {
QComboBox::down-arrow {
image: url(julius:themes/blenderlight/combo_arrow.svg);
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QComboBox::down-arrow:hover {
@@ -2231,7 +2250,7 @@ QComboBox::item {
border-radius: 4px;
padding: 0px;
max-height: 1.0em; /* it takes full window height if not set */
max-height: 23px; /* 1.0em; */ /* it takes full window height if not set */
}
QComboBox::item:selected {
+73 -30
View File
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------------
NAME: "GreyBlue2" Style Sheet
VERSION: 1.0
VERSION: 1.1
LICENSE: GPL v2
ABOUT: This is a Qt style sheet for "NetRadiant-Custom" application.
@@ -161,7 +161,7 @@ QGroupBox {
outline: none; /* visible in focused [Title] */
margin-top: 1.10em; /* add space for [Title] */
margin-top: 25px; /* 1.10em; */ /* add space for [Title] */
}
QGroupBox:off, QGroupBox:disabled {
@@ -1115,7 +1115,7 @@ QListView::item {
border-radius: 4px;
padding: 0px;
height: 0.90em; /* shrink items so they take up less space */
/* height: 0.90em; */ /* shrink items so they take up less space */
}
QListView::item:hover {
@@ -1142,6 +1142,12 @@ QListView::item:selected:!active {
border-color: rgba( 96, 155, 243, 35% ); /* Light BLUE + Alpha */
}
QListView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgba( 71, 114, 179, 75% ); /* Main BLUE + Alpha */
border-color: rgba( 96, 155, 243, 75% ); /* Light BLUE + Alpha */
}
QListView::item:disabled {
color: rgba( 220, 220, 220, 50% ); /* Disabled TEXT */
}
@@ -1214,6 +1220,12 @@ QTableView::item:selected:!active {
border-color: rgba( 96, 155, 243, 35% ); /* Light BLUE + Alpha */
}
QTableView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgba( 71, 114, 179, 75% ); /* Main BLUE + Alpha */
border-color: rgba( 96, 155, 243, 75% ); /* Light BLUE + Alpha */
}
QTableView::item:disabled {
color: rgba( 220, 220, 220, 50% ); /* Disabled TEXT */
}
@@ -1257,7 +1269,7 @@ QTreeView::item {
border-radius: 4px;
padding: 0px;
height: 0.90em; /* shrink items so they take up less space */
/* height: 0.90em; */ /* shrink items so they take up less space */
}
QTreeView::item:hover {
@@ -1279,9 +1291,15 @@ QTreeView::item:selected:hover {
}
QTreeView::item:selected:!active {
/* color: rgb( 220, 220, 220 ); */ /* Main TEXT */
/* background: rgba( 71, 114, 179, 35% ); */ /* Main BLUE + Alpha */
/* border-color: rgba( 96, 155, 243, 35% ); */ /* Light BLUE + Alpha */
color: rgb( 220, 220, 220 ); /* Main TEXT */
background: rgba( 71, 114, 179, 35% ); /* Main BLUE + Alpha */
border-color: rgba( 96, 155, 243, 35% ); /* Light BLUE + Alpha */
}
QTreeView::item:selected:hover:!active {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
background: rgba( 71, 114, 179, 75% ); /* Main BLUE + Alpha */
border-color: rgba( 96, 155, 243, 75% ); /* Light BLUE + Alpha */
}
QTreeView::item:disabled {
@@ -1791,6 +1809,10 @@ QPushButton {
min-width: 3em;
}
QTabWidget QPushButton {
min-width: 3.5em; /* prevent buttons from shrinking too much in EI */
}
QPushButton:hover {
color: rgb( 255, 255, 255 ); /* Selected TEXT */
@@ -1933,12 +1955,12 @@ QSpinBox, QDoubleSpinBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 71, 114, 179 ); /* Main BLUE */
min-height: 1.20em; /* sets a fixed height */
max-height: 1.20em;
min-height: 28px; /* 1.20em; */ /* sets a fixed height */
max-height: 28px; /* 1.20em; */
}
QSpinBox {
min-width: 1.5em; /* avoid too small SpinBox */
min-width: 1.5em; /* avoid too small SpinBox in some plugins */
}
QSpinBox:hover, QDoubleSpinBox:hover {
@@ -1979,8 +2001,8 @@ QSpinBox::up-button, QDoubleSpinBox::up-button {
subcontrol-origin: padding; /* margin, border, PADDING, content */
subcontrol-position: top right; /* TOP, bottom, left, RIGHT, center */
width: 1.0em;
height: 0.5em;
width: 23px; /* 1.0em; */
height: 12px; /* 0.5em; */
}
QSpinBox::down-button, QDoubleSpinBox::down-button {
@@ -1996,8 +2018,8 @@ QSpinBox::down-button, QDoubleSpinBox::down-button {
subcontrol-origin: padding; /* margin, border, PADDING, content */
subcontrol-position: bottom right; /* top, BOTTOM, left, RIGHT, center */
width: 1.0em;
height: 0.5em;
width: 23px; /* 1.0em; */
height: 12px; /* 0.5em; */
}
QSpinBox::up-button:disabled, QDoubleSpinBox::up-button:disabled {
@@ -2013,8 +2035,8 @@ QSpinBox::down-button:disabled, QDoubleSpinBox::down-button:disabled {
QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
image: url(julius:themes/greyblue2/chevron_up.svg);
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
top: 1px; /* move it down */
}
@@ -2022,8 +2044,8 @@ QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
image: url(julius:themes/greyblue2/chevron_down.svg);
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
top: -1px; /* move it up */
}
@@ -2039,15 +2061,15 @@ QSpinBox::down-arrow:hover, QDoubleSpinBox::down-arrow:hover {
QSpinBox::up-arrow:pressed, QDoubleSpinBox::up-arrow:pressed {
image: url(julius:themes/greyblue2/chevron_up.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::down-arrow:pressed, QDoubleSpinBox::down-arrow:pressed {
image: url(julius:themes/greyblue2/chevron_down.svg);
width: 0.80em;
height: 0.80em;
width: 18px; /* 0.80em; */
height: 18px; /* 0.80em; */
}
QSpinBox::up-arrow:disabled, QDoubleSpinBox::up-arrow:disabled {
@@ -2085,8 +2107,8 @@ QLineEdit {
min-width: 2.80em;
min-height: 1.20em; /* sets a fixed height */
max-height: 1.20em;
min-height: 28px; /* 1.20em; */ /* sets a fixed height */
max-height: 28px; /* 1.20em; */
}
QLineEdit:hover {
@@ -2134,8 +2156,8 @@ QComboBox {
selection-color: rgb( 255, 255, 255 ); /* Selected TEXT */
selection-background-color: rgb( 71, 114, 179 ); /* Main BLUE */
min-height: 1.20em; /* sets a fixed height */
max-height: 1.20em;
min-height: 28px; /* 1.20em; */ /* sets a fixed height */
max-height: 28px; /* 1.20em; */
}
QComboBox:hover {
@@ -2177,7 +2199,7 @@ QComboBox::drop-down {
subcontrol-origin: padding; /* margin, border, PADDING, content */
subcontrol-position: center right; /* TOP, bottom, left, RIGHT, center */
width: 1.0em;
width: 23px; /* 1.0em; */
}
QComboBox::drop-down:on {
@@ -2193,8 +2215,8 @@ QComboBox::drop-down:disabled {
QComboBox::down-arrow {
image: url(julius:themes/greyblue2/chevron_down.svg);
width: 0.95em;
height: 0.95em;
width: 22px; /* 0.95em; */
height: 22px; /* 0.95em; */
}
QComboBox::down-arrow:hover {
@@ -2253,7 +2275,7 @@ QComboBox::item {
border-radius: 4px;
padding: 0px;
max-height: 1.0em; /* it takes full window height if not set */
max-height: 23px; /* 1.0em; */ /* it takes full window height if not set */
}
QComboBox::item:selected { /* hover */
@@ -2294,4 +2316,25 @@ QSizeGrip {
height: 16px; /* height: 0.70em; */
}
/* ---- Linux ------------------------------------------------------------------
| |
| NOTE: File Selector of KDE is a QDialog window with these widgets: |
| |
| - QListView (left panel). |
| - QSplitter (vertical). |
| - QToolBar + QToolButton + QSlider. |
| - File path; no idea what widget is. |
| - QTreeView + QHeaderView (right panel). |
| - QLabel (2x just before QComboBox). |
| - QComboBox (2x at the bottom). |
| - QPushButton (2x at the bottom). |
| |
---------------------------------------------------------------------------- */
/* Remove Icons in File Selector buttons (Open, Save, Cancel, etc.) */
QDialog QPushButton {
icon: none;
}
/* EOF ------------------------------- EOF ------------------------------ EOF */