Skip to content

Commit 1cbcd94

Browse files
committed
Force elementary stylesheet and update where appropriate
1 parent 172c437 commit 1cbcd94

6 files changed

Lines changed: 19 additions & 12 deletions

File tree

data/cherrypick.metainfo.xml.in

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,23 @@
3838
<screenshots>
3939
<screenshot type="default">
4040
<caption>Cherrypick's main window</caption>
41-
<image>
42-
https://github.com/ellie-commons/cherrypick/blob/main/data/screenshots/window-light.png?raw=true
43-
</image>
41+
<image>https://raw.githubusercontent.com/ellie-commons/cherrypick/@version@/data/screenshots/window-light.png</image>
4442
</screenshot>
4543
<screenshot>
4644
<caption>Main window with dark theme</caption>
47-
<image>
48-
https://github.com/ellie-commons/cherrypick/blob/main/data/screenshots/window-dark.png?raw=true
49-
</image>
45+
<image>https://raw.githubusercontent.com/ellie-commons/cherrypick/@version@/data/screenshots/window-dark.png</image>
5046
</screenshot>
5147
</screenshots>
5248

5349
<releases>
50+
<release date="2025-12-20" version="2.1.5">
51+
<description>
52+
<ul>
53+
<li>Force elementary stylesheet to fix issues</li>
54+
<li>It is cherry</li>
55+
</ul>
56+
</description>
57+
</release>
5458
<release date="2025-12-11" version="2.1.4">
5559
<description>
5660
<ul>

data/screenshots/window-dark.png

103 Bytes
Loading

data/screenshots/window-light.png

154 Bytes
Loading

io.github.ellie_commons.cherrypick.flathub.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: io.github.ellie_commons.cherrypick
1+
app-id: io.github.ellie_commons.cherrypick
22
# elementary SDK is not available on Flathub, so use the elementary BaseApp instead
33
base: io.elementary.BaseApp
44
base-version: 'circe-25.08'
@@ -31,8 +31,8 @@ modules:
3131
sources:
3232
- type: git
3333
url: https://github.com/ellie-commons/cherrypick.git
34-
tag: 2.1.3
35-
commit: 2b4633d0b822e8165bb3703d9745cf9679f4b09c
34+
tag: 2.1.4
35+
commit: 172c4377e098bc3b06fce24321537c5360e2951f
3636
x-checker-data:
3737
type: git
3838
tag-pattern: '^([\d.]+)$'

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('io.github.ellie_commons.cherrypick',
22
'c', 'vala',
3-
version: '2.1.4')
3+
version: '2.1.5')
44

55
subdir('src')
66
subdir('data')
@@ -14,6 +14,7 @@ portal_dep = dependency('libportal')
1414
picker_dependencies = [glib_dep, gtk_dep, granite_dep, portal_dep, meson.get_compiler('c').find_library('m', required: true)]
1515

1616
config_data = configuration_data()
17+
config_data.set('version', meson.project_version())
1718
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
1819
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
1920
config_file = configure_file(

src/Application.vala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ namespace Cherrypick {
4444

4545
public override void startup () {
4646
base.startup ();
47-
// Currently this crashes for 8.2 (which flathub has) bc https://github.com/elementary/granite/pull/893
48-
// Granite.init ();
47+
Gtk.init ();
48+
Granite.init ();
4949

5050
Intl.setlocale (LocaleCategory.ALL, "");
5151
Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
@@ -55,6 +55,8 @@ namespace Cherrypick {
5555

5656
var granite_settings = Granite.Settings.get_default ();
5757
var gtk_settings = Gtk.Settings.get_default ();
58+
gtk_settings.gtk_icon_theme_name = "elementary";
59+
gtk_settings.gtk_theme_name = "io.elementary.stylesheet.strawberry";
5860

5961
gtk_settings.gtk_application_prefer_dark_theme = (
6062
granite_settings.prefers_color_scheme == DARK

0 commit comments

Comments
 (0)