Fix styling of tabs at the bottom in dark mode

This commit is contained in:
Kovid Goyal 2023-04-26 09:39:20 +05:30
parent 13191a08c7
commit 3fb819da03
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -380,14 +380,23 @@ class PaletteManager(QObject):
QTabBar::tab:selected { QTabBar::tab:selected {
background-color: palette(base); background-color: palette(base);
border: 1px solid gray; border: 1px solid gray;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-width: 0;
padding: 2px 8px; padding: 2px 8px;
margin-left: -4px; margin-left: -4px;
margin-right: -4px; margin-right: -4px;
} }
QTabBar::tab:top:selected {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-width: 0;
}
QTabBar::tab:bottom:selected {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-width: 0;
}
QTabBar::tab:first:selected { QTabBar::tab:first:selected {
margin-left: 0; /* the first selected tab has nothing to overlap with on the left */ margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
} }