blueprint: Format with wrapping commit

This commit is contained in:
Jamie Gravendeel
2025-12-06 19:07:52 +01:00
parent 8584eba546
commit d47bb2df7d
2 changed files with 14 additions and 2 deletions

View File

@@ -289,7 +289,11 @@ template $GameDetails: Adw.NavigationPage {
popover: Popover {
child: Label {
label: bind $_format_more_info(_("To launch the executable \"{}\", use the command:\n\n<tt>\"{}\"</tt>\n\nTo open the file \"{}\" with the default application, use:\n\n<tt>{} \"{}\"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!")) as <string>;
label: bind $_format_more_info(
_(
"To launch the executable \"{}\", use the command:\n\n<tt>\"{}\"</tt>\n\nTo open the file \"{}\" with the default application, use:\n\n<tt>{} \"{}\"</tt>\n\nIf the path contains spaces, make sure to wrap it in double quotes!"
)
) as <string>;
use-markup: true;
wrap: true;
wrap-mode: word_char;

View File

@@ -128,7 +128,15 @@ template $Window: Adw.ApplicationWindow {
content: Adw.ToastOverlay toast_overlay {
child: Adw.ViewStack {
enable-transitions: true;
visible-child-name: bind $_if_else(grid.model as <NoSelection>.n-items, "grid", $_if_else(template.search-text, "empty-search", $_if_else(template.show-hidden, "empty-hidden", "empty") as <string>) as <string>) as <string>;
visible-child-name: bind $_if_else(
grid.model as <NoSelection>.n-items,
"grid",
$_if_else(
template.search-text,
"empty-search",
$_if_else(template.show-hidden, "empty-hidden", "empty") as <string>
) as <string>
) as <string>;
Adw.ViewStackPage {
name: "grid";