Remove Adwaita scale brightness increase

This was fixed inside Adwaita theme
This commit is contained in:
Rafał Dzięgiel
2021-07-13 14:47:16 +02:00
parent 02b0d5f03f
commit 13a792c0a9
2 changed files with 0 additions and 15 deletions

View File

@@ -61,9 +61,6 @@ radio {
.roundedcorners {
border-radius: 8px;
}
.adwthemedark scale trough highlight {
filter: brightness(120%);
}
.videowidget {
min-width: 320px;

View File

@@ -111,7 +111,6 @@ class ClapperAppBase extends Gtk.Application
{
const theme = gtkSettings.gtk_theme_name;
const window = this.active_window;
const hasAdwThemeDark = window.has_css_class('adwthemedark');
debug(`user selected theme: ${theme}`);
@@ -119,17 +118,6 @@ class ClapperAppBase extends Gtk.Application
Having 2/4 corners rounded in floating mode is not good. */
if(!window.has_css_class('adwrounded'))
window.add_css_class('adwrounded');
if(theme.startsWith('Adwaita') || theme.startsWith('Default')) {
const isDarkTheme = settings.get_boolean('dark-theme');
if(isDarkTheme && !hasAdwThemeDark)
window.add_css_class('adwthemedark');
else if(!isDarkTheme && hasAdwThemeDark)
window.remove_css_class('adwthemedark');
}
else if(hasAdwThemeDark)
window.remove_css_class('adwthemedark');
}
_onIconThemeChanged(gtkSettings)