more contrast on buttons and scrollbars

This commit is contained in:
Damien Elmes 2020-02-02 12:53:35 +10:00
parent dd9812c7ed
commit 3c48cbff6f
3 changed files with 18 additions and 9 deletions

View file

@ -144,7 +144,12 @@ QScrollBar::sub-line {
border: none; border: none;
background: none; background: none;
} }
""" % (self.str_color("window-bg"), colors.get("fusion-button-hover-bg"))
QTabWidget { background-color: %s; }
""" % (self.str_color("window-bg"),
colors.get("fusion-button-hover-bg"),
self.str_color("window-bg")
)
# allow addons to modify the styling # allow addons to modify the styling
buf = gui_hooks.style_did_init(buf) buf = gui_hooks.style_did_init(buf)
@ -174,7 +179,8 @@ QScrollBar::sub-line {
window_bg = self.qcolor("window-bg") window_bg = self.qcolor("window-bg")
palette.setColor(QPalette.Window, window_bg) palette.setColor(QPalette.Window, window_bg)
palette.setColor(QPalette.AlternateBase, window_bg) palette.setColor(QPalette.AlternateBase, window_bg)
palette.setColor(QPalette.Button, window_bg)
palette.setColor(QPalette.Button, QColor(colors.get("fusion-button-base-bg")))
frame_bg = self.qcolor("frame-bg") frame_bg = self.qcolor("frame-bg")
palette.setColor(QPalette.Base, frame_bg) palette.setColor(QPalette.Base, frame_bg)

View file

@ -35,8 +35,10 @@
box-shadow: 0 0 3px vars.$fusion-button-outline; box-shadow: 0 0 3px vars.$fusion-button-outline;
border: 1px solid vars.$fusion-button-border; border: 1px solid vars.$fusion-button-border;
border-radius: 3px; border-radius: 2px;
padding: 5px; padding: 10px;
padding-top: 3px;
padding-bottom: 3px;
} }
button:hover { button:hover {

View file

@ -41,8 +41,9 @@ $night-suspended-bg: #aaaa33;
$night-marked-bg: #77c; $night-marked-bg: #77c;
/* night-mode-specific colours */ /* night-mode-specific colours */
$fusion-button-gradient-start: #363636; $fusion-button-gradient-start: #555555;
$fusion-button-gradient-end: #404040; $fusion-button-gradient-end: #656565;
$fusion-button-outline: #000; $fusion-button-outline: #222222;
$fusion-button-hover-bg: #454545; $fusion-button-hover-bg: #656565;
$fusion-button-border: #444; $fusion-button-border: #646464;
$fusion-button-base-bg: #454545;