From 2ef55dfd6489dd431600b264df2542dc510930a8 Mon Sep 17 00:00:00 2001 From: Taffroi Date: Sat, 23 Aug 2025 16:07:55 +0200 Subject: [PATCH 1/5] fix: donation icon isn't the same on the app details page --- src/flatpost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flatpost.py b/src/flatpost.py index 69fb6e6..3f02fc8 100755 --- a/src/flatpost.py +++ b/src/flatpost.py @@ -2204,7 +2204,7 @@ def _setup_buttons(self, container, status, app, panel=None): True, app, self.on_donate_clicked, - 'emblem-favorite-symbolic', + 'emote-love-symbolic', None, "Donate" ) From 94c976a9ba26cac9a645b6eadaab93e90775d1d8 Mon Sep 17 00:00:00 2001 From: Taffroi Date: Sat, 23 Aug 2025 16:30:01 +0200 Subject: [PATCH 2/5] fix: colors were not applied on app list items + increased margin by 1px --- src/flatpost.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flatpost.py b/src/flatpost.py index 3f02fc8..4c3557c 100755 --- a/src/flatpost.py +++ b/src/flatpost.py @@ -357,15 +357,15 @@ def __init__(self, system_mode=False, system_only_mode=False): .app-list-item { padding: 24px 32px; - margin: 4px 0; + margin: 5px 0; border-radius: 16px; - background-color: @new_title_bg_color; + background-color: alpha(@card_bg_color,0.6); border: 1px solid mix(currentColor,@window_bg_color,0.9); transition: background-color 0.2s ease-out; } .app-list-item.hover-event { - background-color: mix(@new_title_bg_color,@sidebar_backdrop_color,0.85); + background-color: alpha(@card_bg_color,0.2); box-shadow: 2px 2px 6px rgba(0,0,0,0.05); } From 4f2ca490a001f5bed7ff28e8f77bdc7dc3607030 Mon Sep 17 00:00:00 2001 From: Taffroi Date: Sat, 23 Aug 2025 17:39:10 +0200 Subject: [PATCH 3/5] dialog text button is now centered vertically --- src/flatpost.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flatpost.py b/src/flatpost.py index 4c3557c..ada636e 100755 --- a/src/flatpost.py +++ b/src/flatpost.py @@ -239,6 +239,10 @@ def __init__(self, system_mode=False, system_only_mode=False): border-bottom: 1px solid mix(currentColor,@window_bg_color,0.86); } + dialog button label { + padding: 8px 0; + } + button.titlebutton { min-height: 24px; min-width: 24px; From 911ddaaec7f4ccb4409acc216e87871a65d48c43 Mon Sep 17 00:00:00 2001 From: Taffroi Date: Sat, 23 Aug 2025 18:25:45 +0200 Subject: [PATCH 4/5] fix: some addons with no screenshots or description would crash flatpost --- src/flatpost.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/flatpost.py b/src/flatpost.py index ada636e..78c2a1e 100755 --- a/src/flatpost.py +++ b/src/flatpost.py @@ -373,6 +373,10 @@ def __init__(self, system_mode=False, system_only_mode=False): box-shadow: 2px 2px 6px rgba(0,0,0,0.05); } + .app-list-item-default-icon { + color: @window_fg_color; + } + .app-list-header { font-size: 18px; font-weight: bold; @@ -2062,6 +2066,7 @@ def _setup_icon(self, container, details): Gio.Icon.new_for_string('package-x-generic-symbolic'), is_themed=True ) + icon_widget.Gio.Icon.get_style_context().add_class("app-list-item-default-icon") if details['icon_filename']: icon_path = Path(f"{details['icon_path_128']}/{details['icon_filename']}") @@ -4553,9 +4558,13 @@ def _create_text_section(self, title, text): """Create a text section with title and content.""" box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) + if not isinstance(text,str): + text = "No description provided.\n" + title_label = Gtk.Label(label=f"{title}") title_label.get_style_context().add_class("title-3") title_label.set_xalign(0) + box.pack_start(title_label, False, True, 0) text_view = Gtk.TextView() text_view.set_editable(False) @@ -4604,7 +4613,6 @@ def handle_endtag(self, tag): buffer.set_text(text) # buffer.set_text(e) - box.pack_start(title_label, False, True, 0) box.pack_start(text_view, True, True, 0) return box @@ -4683,9 +4691,10 @@ def on_details_clicked(self, button, app): content_box.pack_start(content_main, False, True, 0) # Add screenshots - screenshot_slideshow = self.create_screenshot_slideshow(details['screenshots'], details['id']) - screenshot_slideshow.set_border_width(0) - content_box.pack_start(screenshot_slideshow, False, True, 0) + if len(details['screenshots']) >= 1: # To prevent apps with no screenshot from crashing Flatpost + screenshot_slideshow = self.create_screenshot_slideshow(details['screenshots'], details['id']) + screenshot_slideshow.set_border_width(0) + content_box.pack_start(screenshot_slideshow, False, True, 0) # Add summary section summary_section = self._create_text_section(details['summary'], details['description']) From 0384b2e2c4e5e061e824c44a810fe81b5ea38795 Mon Sep 17 00:00:00 2001 From: Taffroi Date: Sun, 24 Aug 2025 15:33:01 +0200 Subject: [PATCH 5/5] remove test lines --- src/flatpost.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/flatpost.py b/src/flatpost.py index 78c2a1e..d073d62 100755 --- a/src/flatpost.py +++ b/src/flatpost.py @@ -373,10 +373,6 @@ def __init__(self, system_mode=False, system_only_mode=False): box-shadow: 2px 2px 6px rgba(0,0,0,0.05); } - .app-list-item-default-icon { - color: @window_fg_color; - } - .app-list-header { font-size: 18px; font-weight: bold; @@ -2066,7 +2062,6 @@ def _setup_icon(self, container, details): Gio.Icon.new_for_string('package-x-generic-symbolic'), is_themed=True ) - icon_widget.Gio.Icon.get_style_context().add_class("app-list-item-default-icon") if details['icon_filename']: icon_path = Path(f"{details['icon_path_128']}/{details['icon_filename']}")