gtk: reformat blueprints

This commit is contained in:
Leah Amelia Chen
2026-08-05 16:21:14 +08:00
parent 98fae16a05
commit 261848c2fb
5 changed files with 29 additions and 6 deletions

View File

@@ -4,7 +4,9 @@ using Adw 1;
template $GhosttyConfigErrorsDialog: $GhosttyDialog {
heading: _("Configuration Errors");
body: _("One or more configuration errors were found. Please review the errors below, and either reload your configuration or ignore these errors.");
body: _(
"One or more configuration errors were found. Please review the errors below, and either reload your configuration or ignore these errors."
);
responses [
ignore: _("Ignore"),

View File

@@ -46,7 +46,12 @@ template $GhosttySearchOverlay: Adw.Bin {
"dim-label",
]
label: bind $match_label_closure(template.has-search-selected, template.search-selected, template.has-search-total, template.search-total) as <string>;
label: bind $match_label_closure(
template.has-search-selected,
template.search-selected,
template.has-search-total,
template.search-total
) as <string>;
width-chars: 6;
xalign: 1.0;
}

View File

@@ -97,7 +97,9 @@ Overlay terminal_page {
// TODO: the tooltip doesn't actually work, but keep it here for now so
// that we can get the tooltip text translated.
has-tooltip: true;
tooltip-text: _("This terminal is in read-only mode. You can still view, select, and scroll through the content, but no input events will be sent to the running application.");
tooltip-text: _(
"This terminal is in read-only mode. You can still view, select, and scroll through the content, but no input events will be sent to the running application."
);
halign: end;
valign: start;
spacing: 6;
@@ -206,7 +208,11 @@ Overlay terminal_page {
// Apply unfocused-split-fill and unfocused-split-opacity to current surface
// this is only applied when a tab has more than one surface
Revealer {
reveal-child: bind $should_unfocused_split_be_shown(search_overlay.active, template.focused, template.is-split) as <bool>;
reveal-child: bind $should_unfocused_split_be_shown(
search_overlay.active,
template.focused,
template.is-split
) as <bool>;
transition-duration: 0;
// This is all necessary so that the Revealer itself doesn't override
// any input events from the other overlays. Namely, if you don't have

View File

@@ -8,7 +8,14 @@ template $GhosttyTab: Box {
orientation: vertical;
hexpand: true;
vexpand: true;
title: bind $computed_title(template.config, split_tree.active-surface as <$GhosttySurface>.title, split_tree.active-surface as <$GhosttySurface>.title-override, template.title-override, split_tree.is-zoomed, split_tree.active-surface as <$GhosttySurface>.bell-ringing) as <string>;
title: bind $computed_title(
template.config,
split_tree.active-surface as <$GhosttySurface>.title,
split_tree.active-surface as <$GhosttySurface>.title-override,
template.title-override,
split_tree.is-zoomed,
split_tree.active-surface as <$GhosttySurface>.bell-ringing
) as <string>;
tooltip: bind split_tree.active-surface as <$GhosttySurface>.pwd;
$GhosttySplitTree split_tree {

View File

@@ -47,7 +47,10 @@ template $GhosttyWindow: Adw.ApplicationWindow {
// elements of a property chain are also subscribed to for changes.
// This one long, ugly line saves us from manually building up this
// massive notify chain in code.
subtitle: bind $computed_subtitle(template.config, tab_view.selected-page.child as <$GhosttyTab>.active-surface as <$GhosttySurface>.pwd) as <string>;
subtitle: bind $computed_subtitle(
template.config,
tab_view.selected-page.child as <$GhosttyTab>.active-surface as <$GhosttySurface>.pwd
) as <string>;
};
[start]