Skip to content

Commit d43bd9a

Browse files
nirvnnyalldawson
authored andcommittedMay 15, 2020
[themes] Fix styling of bottom-located tabs
1 parent 6f7ce18 commit d43bd9a

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed
 

‎resources/themes/Blend of Gray/style.qss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,15 @@ QTabBar::tab:selected
561561
margin-bottom: 0px;
562562
}
563563

564-
QTabBar::tab:!selected:hover
564+
QTabBar::tab:bottom:!selected
565565
{
566-
/*border-top: 2px solid @selection;
567-
padding-bottom: 3px;*/
568-
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:0.4 #343434, stop:0.2 #343434, stop:0.1 #ffaa00);*/
566+
margin-top: 0;
567+
margin-bottom: 0.3em;
568+
}
569+
570+
QTabBar::tab:bottom:selected
571+
{
572+
margin-top: 0px;
569573
}
570574

571575
QGroupBox::indicator:hover,

‎resources/themes/Night Mapping/style.qss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,15 @@ QTabBar::tab:selected
571571
margin-bottom: 0px;
572572
}
573573

574-
QTabBar::tab:!selected:hover
574+
QTabBar::tab:bottom:!selected
575575
{
576-
/*border-top: 2px solid @selection;
577-
padding-bottom: 3px;*/
578-
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:1 #212121, stop:0.4 #343434, stop:0.2 #343434, stop:0.1 #ffaa00);*/
576+
margin-top: 0;
577+
margin-bottom: 0.3em;
578+
}
579+
580+
QTabBar::tab:bottom:selected
581+
{
582+
margin-top: 0px;
579583
}
580584

581585
QGroupBox::indicator:hover,

0 commit comments

Comments
 (0)
Please sign in to comment.