Skip to content

Commit

Permalink
Granite.init
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 15, 2024
1 parent 202e248 commit 71b0100
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion data/gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<gresources>
<gresource prefix="/io/elementary/tasks">
<file alias="location-marker.svg" compressed="true" preprocess="xml-stripblanks">LocationMarker.svg</file>
<file compressed="true">ButtonBox.css</file>
<file compressed="true">Application.css</file>
<file compressed="true">EditableLabel.css</file>
<file compressed="true">EntryPopover.css</file>
<file compressed="true">SourceRow.css</file>
Expand Down
6 changes: 2 additions & 4 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();

Expand All @@ -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) {
Expand Down

0 comments on commit 71b0100

Please sign in to comment.