diff --git a/data/icons/hicolor/128x128/apps/jp.angeltech.MoeMoji.png b/data/icons/hicolor/128x128/apps/jp.angeltech.MoeMoji.png new file mode 100644 index 0000000..cf6fe0d Binary files /dev/null and b/data/icons/hicolor/128x128/apps/jp.angeltech.MoeMoji.png differ diff --git a/data/icons/hicolor/256x256/apps/jp.angeltech.MoeMoji.png b/data/icons/hicolor/256x256/apps/jp.angeltech.MoeMoji.png new file mode 100644 index 0000000..6109028 Binary files /dev/null and b/data/icons/hicolor/256x256/apps/jp.angeltech.MoeMoji.png differ diff --git a/data/icons/hicolor/48x48/apps/jp.angeltech.MoeMoji.png b/data/icons/hicolor/48x48/apps/jp.angeltech.MoeMoji.png new file mode 100644 index 0000000..0239e80 Binary files /dev/null and b/data/icons/hicolor/48x48/apps/jp.angeltech.MoeMoji.png differ diff --git a/data/icons/hicolor/64x64/apps/jp.angeltech.MoeMoji.png b/data/icons/hicolor/64x64/apps/jp.angeltech.MoeMoji.png new file mode 100644 index 0000000..d379ffd Binary files /dev/null and b/data/icons/hicolor/64x64/apps/jp.angeltech.MoeMoji.png differ diff --git a/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.png b/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.png new file mode 100644 index 0000000..c28aaec Binary files /dev/null and b/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.png differ diff --git a/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.svg b/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.svg deleted file mode 100644 index 0bd1216..0000000 --- a/data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/data/icons/meson.build b/data/icons/meson.build index 1e2be81..bd158cd 100644 --- a/data/icons/meson.build +++ b/data/icons/meson.build @@ -1,10 +1,14 @@ application_id = 'jp.angeltech.MoeMoji' scalable_dir = join_paths('hicolor', 'scalable', 'apps') -install_data( - join_paths(scalable_dir, ('@0@.svg').format(application_id)), - install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir) -) + +foreach size : ['48x48', '64x64', '128x128', '256x256'] + size_dir = join_paths('hicolor', size, 'apps') + install_data( + join_paths(size_dir, ('@0@.png').format(application_id)), + install_dir: join_paths(get_option('datadir'), 'icons', size_dir) + ) +endforeach symbolic_dir = join_paths('hicolor', 'symbolic', 'apps') install_data( diff --git a/dev.jp.angeltech.MoeMoji.json b/dev.jp.angeltech.MoeMoji.json new file mode 100644 index 0000000..5f80f4b --- /dev/null +++ b/dev.jp.angeltech.MoeMoji.json @@ -0,0 +1,25 @@ +{ + "app-id": "jp.angeltech.MoeMoji", + "runtime": "org.gnome.Platform", + "runtime-version": "49", + "sdk": "org.gnome.Sdk", + "command": "moemoji", + "finish-args": [ + "--share=ipc", + "--socket=fallback-x11", + "--socket=wayland", + "--talk-name=org.kde.StatusNotifierWatcher" + ], + "modules": [ + { + "name": "moemoji", + "buildsystem": "meson", + "sources": [ + { + "type": "dir", + "path": "." + } + ] + } + ] + } diff --git a/src/moemoji-application.c b/src/moemoji-application.c index 72ae04a..8d69fda 100644 --- a/src/moemoji-application.c +++ b/src/moemoji-application.c @@ -526,7 +526,7 @@ static void moemoji_application_startup(GApplication *app) { gtk_icon_theme_add_resource_path( gtk_icon_theme_get_for_display(gdk_display_get_default()), "/jp/angeltech/MoeMoji/icons"); - gtk_window_set_default_icon_name("jp.angeltech.MoeMoji-symbolic"); + gtk_window_set_default_icon_name("jp.angeltech.MoeMoji"); gboolean in_flatpak = g_file_test("/.flatpak-info", G_FILE_TEST_EXISTS); if (in_flatpak) { self->icon_theme_path = NULL; diff --git a/src/moemoji.gresource.xml b/src/moemoji.gresource.xml index 2ce2a23..5f42e4a 100644 --- a/src/moemoji.gresource.xml +++ b/src/moemoji.gresource.xml @@ -4,7 +4,7 @@ moemoji-window.ui style.css wp.png - ../data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.svg + ../data/icons/hicolor/scalable/apps/jp.angeltech.MoeMoji.png ../data/icons/hicolor/symbolic/apps/jp.angeltech.MoeMoji-symbolic.svg