From e17d6134201d0bb33881ddb6469c1cbe8fad0cb7 Mon Sep 17 00:00:00 2001 From: Alexander Vanhee <160625516+AlexanderVanhee@users.noreply.github.com> Date: Wed, 12 Nov 2025 18:05:32 +0100 Subject: [PATCH 1/2] Add eol notices --- src/bz-full-view.blp | 44 ++++++++++++++++++++++++++++++++++++++- src/bz-installed-tile.blp | 9 ++++++++ src/gtk/style.css | 5 +++++ 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/src/bz-full-view.blp b/src/bz-full-view.blp index 9b776a8f..243946ed 100644 --- a/src/bz-full-view.blp +++ b/src/bz-full-view.blp @@ -133,12 +133,25 @@ template $BzFullView: Adw.Bin { halign: center; pixel-size: 128; paintable: bind template.entry-group as <$BzEntryGroup>.icon-paintable; + visible: bind $invert_boolean($is_null(template.entry-group as <$BzEntryGroup>.icon-paintable) as ) as ; styles [ "icon-dropshadow", ] } + Image fallback_icon { + valign: center; + halign: center; + pixel-size: 128; + + icon-name: "application-x-executable"; + visible: bind $is_null(template.entry-group as <$BzEntryGroup>.icon-paintable) as ; + styles [ + "icon-dropshadow", + ] + } + Box not_icon { orientation: horizontal; baseline-position: center; @@ -174,7 +187,7 @@ template $BzFullView: Adw.Bin { "accent", "app-developer", ] - + visible: bind $invert_boolean($is_null(template.ui-entry as <$BzResult>.object as <$BzEntry>.developer) as ) as ; xalign: 0.0; wrap: true; wrap-mode: word_char; @@ -487,6 +500,35 @@ template $BzFullView: Adw.Bin { } } } + Box { + visible: bind $invert_boolean($is_null(template.entry-group as <$BzEntryGroup>.eol) as ) as ; + orientation: vertical; + spacing: 8; + + styles ["card" , "eol", "warning"] + Label { + label: _("Stopped Receiving Core Updates"); + margin-top:8; + margin-start: 8; + margin-end: 8; + wrap: true; + wrap-mode: word_char; + justify: center; + + styles ["title-4"] + } + + Label { + label: _("This app uses a runtime that no recieves updates or sescurity fixes and may become unsafe to use"); + margin-bottom: 8; + margin-start: 8; + margin-end: 8; + wrap: true; + wrap-mode: word_char; + justify: center; + } + + } }; } diff --git a/src/bz-installed-tile.blp b/src/bz-installed-tile.blp index 963b761a..ef3fd323 100644 --- a/src/bz-installed-tile.blp +++ b/src/bz-installed-tile.blp @@ -51,6 +51,15 @@ template $BzInstalledTile: Box { label: bind $format_size(template.group as <$BzEntryGroup>.ui-entry as <$BzResult>.object as <$BzEntry>.size) as ; styles ["dimmed", "caption", "installed-size"] } + + Label { + xalign: 0.0; + ellipsize: end; + single-line-mode: true; + visible: bind $invert_boolean($is_null(template.group as <$BzEntryGroup>.eol) as ) as ; + label: _("Stopped Receiving Updates"); + styles ["warning", "caption"] + } } Button support_button { diff --git a/src/gtk/style.css b/src/gtk/style.css index 1edf3a74..b063930a 100644 --- a/src/gtk/style.css +++ b/src/gtk/style.css @@ -196,6 +196,11 @@ button.context-tile:active .lozenge { color: var(--accent-color); } +.card.eol { + background-color: alpha(var(--accent-bg-color),0.15); + color: var(--accent-color); +} + .small-pill.dimmed { background-color: alpha(@theme_fg_color, 0.15); } From a7c3a3b838a1414f02f4062653bdc1af473fcb43 Mon Sep 17 00:00:00 2001 From: Alexander Vanhee <160625516+AlexanderVanhee@users.noreply.github.com> Date: Wed, 12 Nov 2025 18:09:40 +0100 Subject: [PATCH 2/2] Add EOL notice to rich app tile --- src/bz-rich-app-tile.blp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/bz-rich-app-tile.blp b/src/bz-rich-app-tile.blp index 096aceeb..c04de683 100644 --- a/src/bz-rich-app-tile.blp +++ b/src/bz-rich-app-tile.blp @@ -74,6 +74,7 @@ template $BzRichAppTile: Adw.Bin { } Label { + visible: bind $is_null(template.group as <$BzEntryGroup>.eol) as ; css-name: "app-tile-description"; xalign: 0.0; yalign: 0.0; @@ -90,6 +91,25 @@ template $BzRichAppTile: Adw.Bin { "dimmed", ] } + + Label { + visible: bind $invert_boolean($is_null(template.group as <$BzEntryGroup>.eol) as ) as ; + css-name: "app-tile-description"; + xalign: 0.0; + yalign: 0.0; + wrap: true; + wrap-mode: word_char; + ellipsize: end; + vexpand: true; + lines: 2; + max-width-chars: 15; + single-line-mode: true; + label: _("Stopped Receiving Updates"); + + styles [ + "warning", + ] + } } Box {