Skip to content

Commit 7efdfa7

Browse files
committed
refactor: Add missing icons
1 parent 77861f6 commit 7efdfa7

File tree

7 files changed

+21
-2
lines changed

7 files changed

+21
-2
lines changed
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<gresources>
3+
<gresource prefix="/xyz/safeworlds/hiit/icons/scalable/actions/">
4+
<file preprocess="xml-stripblanks">edit-symbolic.svg</file>
5+
<file preprocess="xml-stripblanks">weight2-symbolic.svg</file>
6+
</gresource>
7+
</gresources>

data/resources/icons/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resources += gnome.compile_resources('hiit-icons',
2+
'icons.gresource.xml',
3+
c_name: 'hiit_icons',
4+
)
Lines changed: 2 additions & 0 deletions
Loading

data/resources/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ resources = gnome.compile_resources ('hiit-resources',
1515
c_name: 'hiit',
1616
dependencies: blueprints,
1717
)
18+
19+
subdir('icons')

data/resources/ui/window.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ template $ExerciseTimerWindow : Adw.ApplicationWindow {
4646
}
4747
}
4848
Adw.StatusPage training_list_status {
49-
icon-name: "weight2";
49+
icon-name: "weight2-symbolic";
5050
// Translators: The message which is shown on the background of the empty training list
5151
title: _("No Trainings");
5252
Gtk.Button {

src/Application.vala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ namespace ExerciseTimer {
2828
css_provider.load_from_resource ("/xyz/safeworlds/hiit/style.css");
2929
Gtk.StyleContext.add_provider_for_display (Gdk.Display.get_default (), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER);
3030

31+
Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()).add_resource_path ("/xyz/safeworlds/hiit/icons");
32+
3133
win.present ();
3234
}
3335

@@ -63,7 +65,7 @@ namespace ExerciseTimer {
6365
}
6466

6567
private void on_shortcuts_action () {
66-
var builder = new Gtk.Builder.from_resource("/xyz/safeworlds/hiit/ui/shortcuts_dialog.ui");
68+
var builder = new Gtk.Builder.from_resource ("/xyz/safeworlds/hiit/ui/shortcuts_dialog.ui");
6769
var dialog = builder.get_object ("shortcuts_dialog") as Adw.ShortcutsDialog;
6870
dialog.present (this.get_active_window ());
6971
}

0 commit comments

Comments
 (0)