From baa38b11bd7d646f496b701d88971b909d4a694d Mon Sep 17 00:00:00 2001 From: xiota <> Date: Wed, 10 Jan 2024 03:21:43 -0800 Subject: [PATCH] Move icons to resources --- data/resources/meson.build | 45 +++++++++++++------------- data/resources/resources.gresource.xml | 13 ++++++++ 2 files changed, 35 insertions(+), 23 deletions(-) diff --git a/data/resources/meson.build b/data/resources/meson.build index fad92a2..a072bfd 100644 --- a/data/resources/meson.build +++ b/data/resources/meson.build @@ -28,29 +28,28 @@ install_data( install_dir: join_paths(get_option('datadir'), symbolic_dir) ) -action_dir = join_paths('icons', 'hicolor', 'scalable', 'actions') -action_icons = [ - # each icon must be registered here - join_paths(action_dir, 'image-missing-symbolic.svg'), - join_paths(action_dir, 'paper-symbolic.svg'), - join_paths(action_dir, 'usb-stick-symbolic.svg'), - join_paths(action_dir, 'check-round-outline-symbolic.svg'), - join_paths(action_dir, 'view-refresh-symbolic.svg'), - join_paths(action_dir, 'error-symbolic.svg'), - join_paths(action_dir, 'application-x-generic.svg'), - join_paths(action_dir, 'play-symbolic.svg'), - join_paths(action_dir, 'pause-symbolic.svg'), - join_paths(action_dir, 'horizontal-flip-symbolic.svg'), - join_paths(action_dir, 'vertical-flip-symbolic.svg'), - join_paths(action_dir, 'chain-link-symbolic.svg'), - join_paths(action_dir, 'chain-link-loose-symbolic.svg'), -] - -install_data( - action_icons, - install_dir: join_paths(get_option('datadir'), action_dir) -) +#action_dir = join_paths('icons', 'hicolor', 'scalable', 'actions') +#action_icons = [ +# # each icon must be registered here +# join_paths(action_dir, 'image-missing-symbolic.svg'), +# join_paths(action_dir, 'paper-symbolic.svg'), +# join_paths(action_dir, 'usb-stick-symbolic.svg'), +# join_paths(action_dir, 'check-round-outline-symbolic.svg'), +# join_paths(action_dir, 'view-refresh-symbolic.svg'), +# join_paths(action_dir, 'error-symbolic.svg'), +# join_paths(action_dir, 'application-x-generic.svg'), +# join_paths(action_dir, 'play-symbolic.svg'), +# join_paths(action_dir, 'pause-symbolic.svg'), +# join_paths(action_dir, 'horizontal-flip-symbolic.svg'), +# join_paths(action_dir, 'vertical-flip-symbolic.svg'), +# join_paths(action_dir, 'chain-link-symbolic.svg'), +# join_paths(action_dir, 'chain-link-loose-symbolic.svg'), +#] +#install_data( +# action_icons, +# install_dir: join_paths(get_option('datadir'), action_dir) +#) # Resources resources = gnome.compile_resources( @@ -61,4 +60,4 @@ resources = gnome.compile_resources( install: true, install_dir: pkgdatadir, dependencies: blueprints, -) \ No newline at end of file +) diff --git a/data/resources/resources.gresource.xml b/data/resources/resources.gresource.xml index 51c8b99..2c0b7e3 100644 --- a/data/resources/resources.gresource.xml +++ b/data/resources/resources.gresource.xml @@ -12,5 +12,18 @@ icons/hicolor/symbolic/apps/io.gitlab.adhami3310.Footage-symbolic.svg icons/hicolor/scalable/apps/io.gitlab.adhami3310.Footage.svg icons/hicolor/scalable/apps/io.gitlab.adhami3310.Footage.Devel.svg + icons/hicolor/scalable/actions/image-missing-symbolic.svg + icons/hicolor/scalable/actions/paper-symbolic.svg + icons/hicolor/scalable/actions/usb-stick-symbolic.svg + icons/hicolor/scalable/actions/check-round-outline-symbolic.svg + icons/hicolor/scalable/actions/view-refresh-symbolic.svg + icons/hicolor/scalable/actions/error-symbolic.svg + icons/hicolor/scalable/actions/application-x-generic.svg + icons/hicolor/scalable/actions/play-symbolic.svg + icons/hicolor/scalable/actions/pause-symbolic.svg + icons/hicolor/scalable/actions/horizontal-flip-symbolic.svg + icons/hicolor/scalable/actions/vertical-flip-symbolic.svg + icons/hicolor/scalable/actions/chain-link-symbolic.svg + icons/hicolor/scalable/actions/chain-link-loose-symbolic.svg -- 2.43.0