Skip to content

Commit 90a6608

Browse files
committed
Fix the awful light/dark GUI theme tab styles
1 parent 9677008 commit 90a6608

File tree

3 files changed

+52
-36
lines changed

3 files changed

+52
-36
lines changed

src/qt/res/stylesheets/dark_stylesheet.qss

+31-17
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ BitcoinAmountField{
1010
background-color: rgb(49,54,59);
1111
}
1212

13+
/* HLine */
14+
QFrame[frameShape="4"] {
15+
border-top: 0.065em solid rgb(67, 74, 80);
16+
}
17+
18+
/* VLine */
19+
QFrame[frameShape="5"] {
20+
border-left: 0.065em solid rgb(67, 74, 80);
21+
}
22+
1323
QToolButton {
1424
color: white;
1525
background-color: qlineargradient(x1: 0, y1: 0, x2: 1.0, y2: 1.0,stop: 0 rgb(49,54,59), stop: 1 rgb(49,54,59));
@@ -294,35 +304,41 @@ QDoubleSpinBox{
294304
background-color: rgb(35,38,41);
295305
}
296306

297-
QTabWidget{
298-
background-color: rgb(49,54,59);
307+
QTabWidget::tab-bar {
308+
left: 0.5em;
299309
}
300310

301311
QTabWidget::pane { /* The tab widget frame */
302-
border: 0.065em solid rgb(100,100,100);
312+
background-color: rgb(58, 64, 69);
313+
border: 0.065em solid rgb(67, 74, 80);
303314
}
304315

305316
QTabBar::tab {
306-
background: rgb(64,68,82);
307-
border: 0.065em solid rgb(100,100,100);
308-
min-height:1.25em;
317+
background-color: rgb(49, 54, 59);
318+
border: 0.065em solid rgb(67, 74, 80);
319+
border-bottom: none;
320+
min-height: 1.25em;
309321
min-width: 0.5em;
310-
padding: 0.125em;
322+
padding: 0.125em 1em;
311323
}
312324

313-
QTabBar::tab:selected {
314-
background: rgb(49,54,59);
315-
border: 0.065em solid rgb(100,100,100);
316-
border-bottom-color: rgb(49,54,59);
325+
QTabBar::tab:!first {
326+
margin-left: -0.065em;
317327
}
318328

319-
QTabBar::tab:hover {
320-
background: rgb(65,0,127);
321-
color: white;
329+
QTabBar::tab:selected {
330+
background-color: rgb(58, 64, 69);
331+
border-bottom-color: rgb(58, 64, 69);
332+
border-top-color: rgb(120, 20, 255);
333+
border-top-width: 0.13em;
322334
}
323335

324336
QTabBar::tab:!selected {
325-
margin-top: 0.18em; /* make non-selected tabs look smaller */
337+
margin-top: 0.13em;
338+
}
339+
340+
QTabBar::tab:!selected:hover {
341+
background-color: rgb(58, 64, 69);
326342
}
327343

328344
QTextEdit{
@@ -526,5 +542,3 @@ QToolBar#toolbar3 QLabel{
526542
#capsLabel{
527543
font-weight:bold;
528544
}
529-
530-

src/qt/res/stylesheets/light_stylesheet.qss

+21-17
Original file line numberDiff line numberDiff line change
@@ -295,35 +295,41 @@ QDoubleSpinBox{
295295
background-color: white;
296296
}
297297

298-
QTabWidget{
299-
background-color: rgb(240,240,240);
298+
QTabWidget::tab-bar {
299+
left: 0.5em;
300300
}
301301

302302
QTabWidget::pane { /* The tab widget frame */
303-
border: 0.065em solid rgb(100,100,100);
303+
background-color: rgb(255, 255, 255);
304+
border: 0.065em solid rgb(200, 200, 200);
304305
}
305306

306307
QTabBar::tab {
307-
background: rgb(200,200,200);
308-
border: 0.065em solid rgb(100,100,100);
309-
min-height:1.25em;
308+
background-color: rgb(240, 240, 240);
309+
border: 0.065em solid rgb(200, 200, 200);
310+
border-bottom: none;
311+
min-height: 1.25em;
310312
min-width: 0.5em;
311-
padding: 0.125em;
313+
padding: 0.125em 1em;
312314
}
313315

314-
QTabBar::tab:selected {
315-
background: rgb(240,240,240);
316-
border: 0.065em solid rgb(100,100,100);
317-
border-bottom-color: rgb(240,240,240);
316+
QTabBar::tab:!first {
317+
margin-left: -0.065em;
318318
}
319319

320-
QTabBar::tab:hover {
321-
background: rgb(65,0,127);
322-
color: white;
320+
QTabBar::tab:selected {
321+
background-color: rgb(255, 255, 255);
322+
border-bottom-color: rgb(255, 255, 255);
323+
border-top-color: rgb(120, 20, 255);
324+
border-top-width: 0.13em;
323325
}
324326

325327
QTabBar::tab:!selected {
326-
margin-top: 0.18em; /* make non-selected tabs look smaller */
328+
margin-top: 0.13em;
329+
}
330+
331+
QTabBar::tab:!selected:hover {
332+
background: rgb(255, 255, 255);
327333
}
328334

329335
QTextEdit{
@@ -509,5 +515,3 @@ QToolBar#toolbar3 QLabel{
509515
#capsLabel{
510516
font-weight:bold;
511517
}
512-
513-

src/qt/res/stylesheets/native_stylesheet.qss

-2
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,3 @@ QToolBar#toolbar3 QLabel{
168168
#capsLabel{
169169
font-weight:bold;
170170
}
171-
172-

0 commit comments

Comments
 (0)