fix dark.qss when editor is started normally; somehow effect of switch theme on the run is different regarding toolbar::spacing

This commit is contained in:
Garux
2025-10-08 17:07:46 +05:00
parent 2bec7e7177
commit 875efcd650
2 changed files with 20 additions and 8 deletions
+10 -4
View File
@@ -59,8 +59,8 @@ QScrollBar::sub-line:horizontal {
QScrollBar::handle:hover {
background: rgb( 250, 203, 129 );
}
QMainWindow > QToolBar:horizontal {
/* QMainWindow > QToolBar QToolButton - spacing: 0 - is 1 after normal editor start */
QToolBar:horizontal {
background: rgb( 70, 70, 70 ); /* darker than window */
border-right: 4px solid transparent;
border-left: 4px solid transparent;
@@ -76,7 +76,7 @@ QMainWindow > QToolBar:horizontal {
padding: 0px;
spacing: 0px; /* space between buttons */
}
QMainWindow > QToolBar:right {
QToolBar:right {
background: rgb( 70, 70, 70 ); /* darker than window */
border-bottom: 4px solid transparent;
border-top: 4px solid transparent;
@@ -90,7 +90,7 @@ QMainWindow > QToolBar:right {
padding: 0px;
spacing: 0px; /* space between buttons */
}
QMainWindow > QToolBar:left {
QToolBar:left {
background: rgb( 70, 70, 70 ); /* darker than window */
border-bottom: 4px solid transparent;
border-top: 4px solid transparent;
@@ -104,8 +104,14 @@ QMainWindow > QToolBar:left {
padding: 0px;
spacing: 0px; /* space between buttons */
}
/* non QMainWindow toolbars */
QSplitter QToolBar:horizontal {
spacing: 1px; /* space between buttons */
}
/* QMainWindow > QToolBar:horizontal QToolButton - doesnt' work; would like horizontal only & vertical only padding */
QMainWindow > QToolBar QToolButton {
background: rgb( 110, 110, 110 ); /* brighter than window */
padding: 1;
}
QToolBar::separator:horizontal {
width: 8px;
+10 -4
View File
@@ -59,8 +59,8 @@ QScrollBar::sub-line:horizontal {
QScrollBar::handle:hover {
background: rgb( 250, 203, 129 );
}
QMainWindow > QToolBar:horizontal {
/* QMainWindow > QToolBar QToolButton - spacing: 0 - is 1 after normal editor start */
QToolBar:horizontal {
background: rgb( 32, 32, 32 ); /* darker than window */
border-right: 4px solid transparent;
border-left: 4px solid transparent;
@@ -76,7 +76,7 @@ QMainWindow > QToolBar:horizontal {
padding: 0px;
spacing: 0px; /* space between buttons */
}
QMainWindow > QToolBar:right {
QToolBar:right {
background: rgb( 32, 32, 32 ); /* darker than window */
border-bottom: 4px solid transparent;
border-top: 4px solid transparent;
@@ -90,7 +90,7 @@ QMainWindow > QToolBar:right {
padding: 0px;
spacing: 0px; /* space between buttons */
}
QMainWindow > QToolBar:left {
QToolBar:left {
background: rgb( 32, 32, 32 ); /* darker than window */
border-bottom: 4px solid transparent;
border-top: 4px solid transparent;
@@ -104,8 +104,14 @@ QMainWindow > QToolBar:left {
padding: 0px;
spacing: 0px; /* space between buttons */
}
/* non QMainWindow toolbars */
QSplitter QToolBar:horizontal {
spacing: 1px; /* space between buttons */
}
/* QMainWindow > QToolBar:horizontal QToolButton - doesnt' work; would like horizontal only & vertical only padding */
QMainWindow > QToolBar QToolButton {
background: rgb( 64, 64, 64 ); /* brighter than window */
padding: 1;
}
QToolBar::separator:horizontal {
width: 8px;