From 3fb819da03fbdc0df311099eee0ae013bf9ff57d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Apr 2023 09:39:20 +0530 Subject: [PATCH] Fix styling of tabs at the bottom in dark mode --- src/calibre/gui2/palette.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/palette.py b/src/calibre/gui2/palette.py index d919154eec..9334013e5b 100644 --- a/src/calibre/gui2/palette.py +++ b/src/calibre/gui2/palette.py @@ -380,14 +380,23 @@ class PaletteManager(QObject): QTabBar::tab:selected { background-color: palette(base); border: 1px solid gray; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - border-bottom-width: 0; padding: 2px 8px; margin-left: -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 { margin-left: 0; /* the first selected tab has nothing to overlap with on the left */ }