From 13a792c0a99e9fd2cb6a32b743b7f248cb58bab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 13 Jul 2021 14:47:16 +0200 Subject: [PATCH] Remove Adwaita scale brightness increase This was fixed inside Adwaita theme --- css/styles.css | 3 --- src/appBase.js | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/css/styles.css b/css/styles.css index 92fd33c4..27d217e2 100644 --- a/css/styles.css +++ b/css/styles.css @@ -61,9 +61,6 @@ radio { .roundedcorners { border-radius: 8px; } -.adwthemedark scale trough highlight { - filter: brightness(120%); -} .videowidget { min-width: 320px; diff --git a/src/appBase.js b/src/appBase.js index 7afcd015..c5ea5c13 100644 --- a/src/appBase.js +++ b/src/appBase.js @@ -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)