From 1c495f54cf76ca822463973ace08c533b834dad6 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 12 Jul 2025 13:33:28 +0900 Subject: [PATCH 1/4] Add custom style for Shumate.Point --- README.md | 2 +- data/Application.css | 21 +++++++++++++++++++++ data/atlas.gresource.xml | 4 ++++ src/meson.build | 4 ++-- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 data/Application.css diff --git a/README.md b/README.md index 7a06cdb..1058c01 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ You'll need the following dependencies: * libgeoclue-2-dev * libgeocode-glib-dev (>= 3.26.3) * libglib2.0-dev (>= 2.74) -* libgranite-7-dev (>= 7.2.0) +* libgranite-7-dev (>= 7.3.0) * libgtk-4-dev * libshumate-dev * meson (>= 0.57.0) diff --git a/data/Application.css b/data/Application.css new file mode 100644 index 0000000..29b2019 --- /dev/null +++ b/data/Application.css @@ -0,0 +1,21 @@ +/* Style for Shumate.Point */ +map-point { + border: 0.3rem solid @bg_color; + background: @BLUEBERRY_500; + border-radius: 50%; + min-height: 1.5rem; + min-width: 1.5rem; + animation: zoom 6s linear infinite; +} + +@keyframes zoom { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.2); + } + 100% { + transform: scale(1); + } +} diff --git a/data/atlas.gresource.xml b/data/atlas.gresource.xml index 0feba55..e7432d7 100644 --- a/data/atlas.gresource.xml +++ b/data/atlas.gresource.xml @@ -1,5 +1,9 @@ + + Application.css + + icons/pointer.svg diff --git a/src/meson.build b/src/meson.build index d835ca6..831d6d6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -14,8 +14,8 @@ dependencies = [ dependency('gio-2.0'), # Version limitation for GLib.ApplicationFlags.DEFAULT_FLAGS dependency('glib-2.0', version: '>= 2.74'), - # Version limitation for Granite.init() - dependency('granite-7', version: '>= 7.2.0'), + # Version limitation for automatic load of Application.css in Granite.init() + dependency('granite-7', version: '>= 7.3.0'), dependency('gtk4'), dependency('libadwaita-1'), dependency('libgeoclue-2.0'), From eec70c93da59edb618e4668ac4195750eea06c75 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 12 Jul 2025 13:36:00 +0900 Subject: [PATCH 2/4] Fix copy & paste error --- data/atlas.gresource.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/atlas.gresource.xml b/data/atlas.gresource.xml index e7432d7..81c7aba 100644 --- a/data/atlas.gresource.xml +++ b/data/atlas.gresource.xml @@ -1,6 +1,6 @@ - + Application.css From f87f99fb00df4c3e1b7df6647c1c3849dec873eb Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 12 Jul 2025 13:38:27 +0900 Subject: [PATCH 3/4] Fix style --- data/Application.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Application.css b/data/Application.css index 29b2019..1267f0f 100644 --- a/data/Application.css +++ b/data/Application.css @@ -1,6 +1,6 @@ /* Style for Shumate.Point */ map-point { - border: 0.3rem solid @bg_color; + border: 0.3rem solid @theme_bg_color; background: @BLUEBERRY_500; border-radius: 50%; min-height: 1.5rem; From d4d5a3447d991690df2d1b7382692bf618c79f49 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 12 Jul 2025 13:41:38 +0900 Subject: [PATCH 4/4] Tweak style --- data/Application.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/Application.css b/data/Application.css index 1267f0f..3121486 100644 --- a/data/Application.css +++ b/data/Application.css @@ -3,9 +3,9 @@ map-point { border: 0.3rem solid @theme_bg_color; background: @BLUEBERRY_500; border-radius: 50%; - min-height: 1.5rem; - min-width: 1.5rem; - animation: zoom 6s linear infinite; + min-height: 1.25rem; + min-width: 1.25rem; + animation: zoom 5s linear infinite; } @keyframes zoom { @@ -13,7 +13,7 @@ map-point { transform: scale(1); } 50% { - transform: scale(1.2); + transform: scale(1.1); } 100% { transform: scale(1);