Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion src/bz-full-view.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <bool>) as <bool>;

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 <bool>;
styles [
"icon-dropshadow",
]
}

Box not_icon {
orientation: horizontal;
baseline-position: center;
Expand Down Expand Up @@ -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 <bool>) as <bool>;
xalign: 0.0;
wrap: true;
wrap-mode: word_char;
Expand Down Expand Up @@ -487,6 +500,35 @@ template $BzFullView: Adw.Bin {
}
}
}
Box {
visible: bind $invert_boolean($is_null(template.entry-group as <$BzEntryGroup>.eol) as <bool>) as <bool>;
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;
}

}
};
}

Expand Down
9 changes: 9 additions & 0 deletions src/bz-installed-tile.blp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ template $BzInstalledTile: Box {
label: bind $format_size(template.group as <$BzEntryGroup>.ui-entry as <$BzResult>.object as <$BzEntry>.size) as <string>;
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 <bool>) as <bool>;
label: _("Stopped Receiving Updates");
styles ["warning", "caption"]
}
}

Button support_button {
Expand Down
20 changes: 20 additions & 0 deletions src/bz-rich-app-tile.blp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ template $BzRichAppTile: Adw.Bin {
}

Label {
visible: bind $is_null(template.group as <$BzEntryGroup>.eol) as <bool>;
css-name: "app-tile-description";
xalign: 0.0;
yalign: 0.0;
Expand All @@ -90,6 +91,25 @@ template $BzRichAppTile: Adw.Bin {
"dimmed",
]
}

Label {
visible: bind $invert_boolean($is_null(template.group as <$BzEntryGroup>.eol) as <bool>) as <bool>;
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 {
Expand Down
5 changes: 5 additions & 0 deletions src/gtk/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down