Last active
September 24, 2024 13:25
-
-
Save codemedic/f11cc460b8d9544f9afc to your computer and use it in GitHub Desktop.
CSS for KDE Konsole minimal, lighter, dark tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QTabBar, | |
QTabBar::tab | |
{ | |
font-family: "Noto Sans"; | |
font-size: 11px; | |
height: 16px; | |
padding: 2px; | |
border: 0px; | |
border-bottom: 3px solid palette(dark); | |
background-color: palette(dark); | |
color: palette(text); | |
} | |
QTabBar::tab:hover | |
{ | |
text-decoration: underline; | |
} | |
QTabBar::tab:selected | |
{ | |
font-weight: bold; | |
background-color: palette(window); | |
border: 0px; | |
border-bottom-right-radius: 5px; | |
border-bottom-left-radius: 5px; | |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(window), stop: 0.85 palette(window), stop: 1 palette(highlight)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QWidget, QTabWidget::pane, QTabWidget::tab-bar { | |
background-color: rgb(45, 45, 45); | |
} | |
QTabBar::tab { | |
color: rgb(120, 120, 120); | |
background-color: rgb(45, 45, 45); | |
font-size: 10px; | |
height: 25px; | |
padding: 0px; | |
border: 0px; | |
} | |
QTabBar::tab:selected, QTabBar::tab:hover { | |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1e5799, stop: 0.01 #2989d8, stop: 0.11 rgb(45, 45, 45)); | |
color: #4F89CC; | |
} |
What does palette() mean there?
@rubyFeedback palette here is qt palette. In effect, it gives us a way to refer to colours from the current theme / colour scheme set by the DE.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@roachsinai Could it be your font?