From 502d94151ed9dcfeeb691a92a4c413be5783ae2d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 13 Aug 2026 17:21:46 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .../icons/scalable/apps/im.gzr.MunchMate.Devel.svg | 276 +++++++++++++++++++++ data/im.gzr.MunchMate.desktop | 8 + data/im.gzr.MunchMate.gresource.xml | 7 + data/im.gzr.MunchMate.gschema.xml | 4 + data/im.gzr.MunchMate.metainfo.xml | 14 ++ data/im.gzr.MunchMate.service.in | 3 + data/meson.build | 54 ++++ data/style.css | 9 + data/ui/meson.build | 3 + data/ui/mm-window.blp | 17 ++ 10 files changed, 395 insertions(+) create mode 100644 data/icons/scalable/apps/im.gzr.MunchMate.Devel.svg create mode 100644 data/im.gzr.MunchMate.desktop create mode 100644 data/im.gzr.MunchMate.gresource.xml create mode 100644 data/im.gzr.MunchMate.gschema.xml create mode 100644 data/im.gzr.MunchMate.metainfo.xml create mode 100644 data/im.gzr.MunchMate.service.in create mode 100644 data/meson.build create mode 100644 data/style.css create mode 100644 data/ui/meson.build create mode 100644 data/ui/mm-window.blp (limited to 'data') diff --git a/data/icons/scalable/apps/im.gzr.MunchMate.Devel.svg b/data/icons/scalable/apps/im.gzr.MunchMate.Devel.svg new file mode 100644 index 0000000..4e02aed --- /dev/null +++ b/data/icons/scalable/apps/im.gzr.MunchMate.Devel.svg @@ -0,0 +1,276 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/im.gzr.MunchMate.desktop b/data/im.gzr.MunchMate.desktop new file mode 100644 index 0000000..095a0f8 --- /dev/null +++ b/data/im.gzr.MunchMate.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=MunchMate +TryExec=munchmate +Exec=munchmate %U +Icon=im.gzr.MunchMate +Terminal=false +Type=Application +StartupNotify=false diff --git a/data/im.gzr.MunchMate.gresource.xml b/data/im.gzr.MunchMate.gresource.xml new file mode 100644 index 0000000..49c3f7c --- /dev/null +++ b/data/im.gzr.MunchMate.gresource.xml @@ -0,0 +1,7 @@ + + + + ui/mm-window.ui + style.css + + diff --git a/data/im.gzr.MunchMate.gschema.xml b/data/im.gzr.MunchMate.gschema.xml new file mode 100644 index 0000000..5eb38f2 --- /dev/null +++ b/data/im.gzr.MunchMate.gschema.xml @@ -0,0 +1,4 @@ + + + + diff --git a/data/im.gzr.MunchMate.metainfo.xml b/data/im.gzr.MunchMate.metainfo.xml new file mode 100644 index 0000000..7d1a654 --- /dev/null +++ b/data/im.gzr.MunchMate.metainfo.xml @@ -0,0 +1,14 @@ + + + im.gzr.MunchMate + CC0-1.0 + GPL-3.0+ + MunchMate + robertgzr + im.gzr.MunchMate.desktop + + touch + keyboard + pointing + + diff --git a/data/im.gzr.MunchMate.service.in b/data/im.gzr.MunchMate.service.in new file mode 100644 index 0000000..08b3766 --- /dev/null +++ b/data/im.gzr.MunchMate.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=im.gzr.MunchMate +Exec=@bindir@/munchmate --gapplication-service diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..dea46c4 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,54 @@ +subdir('ui') + +resource_files = files('im.gzr.MunchMate.gresource.xml') +resources = gnome.compile_resources( + 'im.gzr.MunchMate', + resource_files, + source_dir: meson.current_build_dir(), + dependencies: custom_target( + 'blueprints', + input: blueprints, + output: '.', + command: [ find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@' ], + ), + c_name: 'resources', +) + +install_subdir('icons/', + install_dir: join_paths(get_option('datadir'), 'icons/hicolor')) + +desktop_file = files('im.gzr.MunchMate.desktop') +install_data( + desktop_file, + install_dir: join_paths(get_option('datadir'), 'applications'), +) + +metainfo_file = files('im.gzr.MunchMate.metainfo.xml') +install_data( + metainfo_file, + install_dir: join_paths(get_option('datadir'), 'metainfo'), +) + +# Validating app data +appstreamcli = find_program('appstreamcli', required: false) +if appstreamcli.found() + test( + 'validate-appdata', appstreamcli, + args: [ 'validate', '--no-net', '--explain', metainfo_file ], + ) +endif + +schema_file = files('im.gzr.MunchMate.gschema.xml') +install_data( + schema_file, + install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas') +) + +configure_file( + input: 'im.gzr.MunchMate.service.in', + output: 'im.gzr.MunchMate.service', + configuration: configuration_data({ + 'bindir': join_paths(get_option('prefix'), get_option('bindir')), + }), + install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services') +) diff --git a/data/style.css b/data/style.css new file mode 100644 index 0000000..55c4483 --- /dev/null +++ b/data/style.css @@ -0,0 +1,9 @@ +/* +window { +} + +@media (prefers-color-scheme: dark) { + window { + } +} +*/ diff --git a/data/ui/meson.build b/data/ui/meson.build new file mode 100644 index 0000000..a492bb7 --- /dev/null +++ b/data/ui/meson.build @@ -0,0 +1,3 @@ +blueprints = files( + 'mm-window.blp', +) diff --git a/data/ui/mm-window.blp b/data/ui/mm-window.blp new file mode 100644 index 0000000..f1b4147 --- /dev/null +++ b/data/ui/mm-window.blp @@ -0,0 +1,17 @@ +using Gtk 4.0; +using Adw 1; + +template $MunchMateWindow : Adw.ApplicationWindow { + title: "Example"; + default-width: 400; + default-height: 350; + + Adw.ToolbarView { + [top] + Adw.HeaderBar {} + + Adw.StatusPage { + title: "Let's go"; + } + } +} -- cgit 1.4.1