From 71b010087566afe0cb344e6b3110b071c0e4ba84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 15 May 2024 12:13:42 -0700 Subject: [PATCH] Granite.init --- data/{ButtonBox.css => Application.css} | 0 data/gresource.xml | 2 +- src/Application.vala | 6 ++---- 3 files changed, 3 insertions(+), 5 deletions(-) rename data/{ButtonBox.css => Application.css} (100%) diff --git a/data/ButtonBox.css b/data/Application.css similarity index 100% rename from data/ButtonBox.css rename to data/Application.css diff --git a/data/gresource.xml b/data/gresource.xml index 747b21849..0cf52b2e5 100644 --- a/data/gresource.xml +++ b/data/gresource.xml @@ -2,7 +2,7 @@ LocationMarker.svg - ButtonBox.css + Application.css EditableLabel.css EntryPopover.css SourceRow.css diff --git a/src/Application.vala b/src/Application.vala index 4eea8158d..883a6c4fd 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -53,6 +53,8 @@ public class Tasks.Application : Gtk.Application { protected override void startup () { base.startup (); + Granite.init (); + unowned var granite_settings = Granite.Settings.get_default (); unowned var gtk_settings = Gtk.Settings.get_default (); @@ -62,10 +64,6 @@ public class Tasks.Application : Gtk.Application { gtk_settings.gtk_application_prefer_dark_theme = ((Granite.Settings) obj).prefers_color_scheme == DARK; }); - var button_box_style_provider = new Gtk.CssProvider (); - button_box_style_provider.load_from_resource ("io/elementary/tasks/ButtonBox.css"); - Gtk.StyleContext.add_provider_for_display (Gdk.Display.get_default (), button_box_style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - var quit_action = new SimpleAction ("quit", null); quit_action.activate.connect (() => { if (active_window != null) {