From 02b0d5f03fb636b3b44a20e7f5e576d02e54d96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 13 Jul 2021 14:39:17 +0200 Subject: [PATCH] Remove theme selection workaround Libadwaita does not support any other stylesheets then Adwaita. Not my fault. --- src/appBase.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/appBase.js b/src/appBase.js index 3015e5d3..7afcd015 100644 --- a/src/appBase.js +++ b/src/appBase.js @@ -130,16 +130,6 @@ class ClapperAppBase extends Gtk.Application } else if(hasAdwThemeDark) window.remove_css_class('adwthemedark'); - - if(!theme.endsWith('-dark')) - return; - - /* We need to request a default theme with optional dark variant - to make the "gtk_application_prefer_dark_theme" setting work */ - const parsedTheme = theme.substring(0, theme.lastIndexOf('-')); - - gtkSettings.gtk_theme_name = parsedTheme; - debug(`set theme: ${parsedTheme}`); } _onIconThemeChanged(gtkSettings)