Performance: add option to disable window shadows

Rendering window shadows in GTK4 doubles GPU usage. This commit adds an option to disable them for performance gain (useful on low-end devices).
This commit is contained in:
Rafostar
2020-11-13 19:26:49 +01:00
parent 4413fdb8a2
commit f660d900ba
8 changed files with 68 additions and 13 deletions

View File

@@ -97,8 +97,8 @@ scale marks {
/* Floating Mode */
.floatingwindow {
background: none;
border-radius: 12px;
box-shadow: -8px -8px transparent, 8px 8px transparent;
}
.osd.floatingcontrols .playercontrols {
-gtk-icon-size: 16px;
@@ -144,8 +144,16 @@ scale marks {
margin: 12px;
}
/* Other */
.gpufriendly {
box-shadow: none;
/* Tweaks */
.nobackground {
background: none;
}
.controlsbox {
background: @theme_bg_color;
}
.gpufriendly {
box-shadow: -8px -8px transparent, 8px 8px transparent;
}
.gpufriendlyfs {
box-shadow: none;
}