From d6289894f0b2438ce5d0f02d5b32d6c1aa854857 Mon Sep 17 00:00:00 2001 From: stsdc <6031763+stsdc@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:43:32 +0200 Subject: [PATCH] Remove stylesheet retrofit --- data/css.gresource.xml | 2 -- data/meson.build | 10 +--------- src/Monitor.vala | 1 - src/Services/Appearance.vala | 11 ----------- 4 files changed, 1 insertion(+), 23 deletions(-) diff --git a/data/css.gresource.xml b/data/css.gresource.xml index 630fb17b..94f5de1a 100644 --- a/data/css.gresource.xml +++ b/data/css.gresource.xml @@ -3,7 +3,5 @@ monitor-light.css monitor-dark.css - monitor-retrofit.css - \ No newline at end of file diff --git a/data/meson.build b/data/meson.build index 41133b1a..4924c47e 100644 --- a/data/meson.build +++ b/data/meson.build @@ -75,19 +75,11 @@ stylesheet_dark = custom_target( build_by_default: true ) -stylesheet_retrofit = custom_target( - 'theme-monitor-retrofit', - input : './stylesheet/monitor-retrofit.scss', - output : 'monitor-retrofit.css', - command : sass_command, - build_by_default: true -) - css_gresource = gnome.compile_resources( 'gresource_css', 'css.gresource.xml', source_dir: 'stylesheet', c_name: 'as2', - dependencies: [stylesheet_dark, stylesheet_light, stylesheet_retrofit], + dependencies: [stylesheet_dark, stylesheet_light], ) \ No newline at end of file diff --git a/src/Monitor.vala b/src/Monitor.vala index 4d2d1aad..e3fff4f0 100644 --- a/src/Monitor.vala +++ b/src/Monitor.vala @@ -75,7 +75,6 @@ namespace Monitor { }); Appearance.set_prefered_style (); - Appearance.retrofit (); // Controls the direction of the sort indicators diff --git a/src/Services/Appearance.vala b/src/Services/Appearance.vala index dda40d2d..a320ab1c 100644 --- a/src/Services/Appearance.vala +++ b/src/Services/Appearance.vala @@ -29,15 +29,4 @@ public class Monitor.Appearance : Object { } }); } - - public static void retrofit () { - if (Gtk.Settings.get_default ().gtk_theme_name.has_prefix ("io.elementary") ) { - debug ("Chewie, We are home."); - } else { - debug ("Retrofitting styles to make Monitor usable with a current theme."); - var provider = new Gtk.CssProvider (); - provider.load_from_resource ("/com/github/stsdc/monitor/monitor-retrofit.css"); - Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - } - } }