theme: refine QTabBar style

This commit is contained in:
Le Tan 2018-05-29 19:53:32 +08:00
parent a5271d409d
commit 8ed4264097
2 changed files with 8 additions and 2 deletions

View File

@ -708,24 +708,27 @@ QTabBar::tab {
color: @tabbar_fg; color: @tabbar_fg;
background: @tabbar_bg; background: @tabbar_bg;
border: none; border: none;
padding: $2px;
} }
QTabBar::tab:top, QTabBar::tab:bottom { QTabBar::tab:top, QTabBar::tab:bottom {
border-top: $2px solid transparent; border-top: $2px solid transparent;
border-right: $1px solid @tabbar_border; border-right: $1px solid @tabbar_border;
/* MUST leave right and left padding 0px. */
padding: $2px 0px $2px 0px;
height: $20px; height: $20px;
} }
QTabBar::tab:right { QTabBar::tab:right {
border-left: $3px solid transparent; border-left: $3px solid transparent;
border-bottom: $1px solid @tabbar_border; border-bottom: $1px solid @tabbar_border;
padding: $5px $2px $5px $2px;
min-width: $20px; min-width: $20px;
} }
QTabBar::tab:left { QTabBar::tab:left {
border-right: $3px solid transparent; border-right: $3px solid transparent;
border-bottom: $1px solid @tabbar_border; border-bottom: $1px solid @tabbar_border;
padding: $5px $2px $5px $2px;
min-width: $20px; min-width: $20px;
} }

View File

@ -708,24 +708,27 @@ QTabBar::tab {
color: @tabbar_fg; color: @tabbar_fg;
background: @tabbar_bg; background: @tabbar_bg;
border: none; border: none;
padding: $2px;
} }
QTabBar::tab:top, QTabBar::tab:bottom { QTabBar::tab:top, QTabBar::tab:bottom {
border-top: $2px solid transparent; border-top: $2px solid transparent;
border-right: $1px solid @tabbar_border; border-right: $1px solid @tabbar_border;
/* MUST leave right and left padding 0px. */
padding: $2px 0px $2px 0px;
height: $20px; height: $20px;
} }
QTabBar::tab:right { QTabBar::tab:right {
border-left: $3px solid transparent; border-left: $3px solid transparent;
border-bottom: $1px solid @tabbar_border; border-bottom: $1px solid @tabbar_border;
padding: $5px $2px $5px $2px;
min-width: $20px; min-width: $20px;
} }
QTabBar::tab:left { QTabBar::tab:left {
border-right: $3px solid transparent; border-right: $3px solid transparent;
border-bottom: $1px solid @tabbar_border; border-bottom: $1px solid @tabbar_border;
padding: $5px $2px $5px $2px;
min-width: $20px; min-width: $20px;
} }