Optimize sliders for GTK 4.1

This commit is contained in:
Rafał Dzięgiel
2021-02-09 12:40:11 +01:00
parent b472c23bf5
commit 23ef3bb85f
2 changed files with 9 additions and 1 deletions

View File

@@ -26,6 +26,12 @@ radio {
.osd list { .osd list {
background: none; background: none;
} }
.gtk41 trough highlight {
border-color: transparent;
}
.gtk41 .osd trough highlight {
border-color: inherit;
}
.osd .playercontrols { .osd .playercontrols {
-gtk-icon-size: 24px; -gtk-icon-size: 24px;
@@ -159,7 +165,6 @@ radio {
} }
.overamp trough highlight { .overamp trough highlight {
background: @error_color; background: @error_color;
border-color: @error_color;
} }
/* Elapsed Popover */ /* Elapsed Popover */

View File

@@ -27,6 +27,9 @@ class ClapperAppBase extends Gtk.Application
title: Misc.appName, title: Misc.appName,
}); });
if(Gtk.MINOR_VERSION > 0)
window.add_css_class('gtk41');
if(!settings.get_boolean('render-shadows')) if(!settings.get_boolean('render-shadows'))
window.add_css_class('gpufriendly'); window.add_css_class('gpufriendly');