Skip to content

Commit

Permalink
[themes] Fix glitched rendering of tab bars with a single tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Dec 20, 2021
1 parent e007a53 commit 668065f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions resources/themes/Blend of Gray/style.qss
Expand Up @@ -562,14 +562,14 @@ QTabBar::tab:disabled {
color: @itemalternativebackground
}

QTabBar::tab:last
QTabBar::tab:last, QTabBar::tab::only-one
{
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
margin-right: 0;
}

QTabBar::tab:first:!selected
{
margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
margin-left: 0px;
}

QTabBar::tab:bottom {
Expand Down
6 changes: 3 additions & 3 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -564,14 +564,14 @@ QTabBar::tab:disabled {
color: @itemdarkbackground;
}

QTabBar::tab:last
QTabBar::tab:last, QTabBar::tab::only-one
{
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
margin-right: 0;
}

QTabBar::tab:first:!selected
{
margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
margin-left: 0px;
}

QTabBar::tab:bottom {
Expand Down

0 comments on commit 668065f

Please sign in to comment.