mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-25 00:21:46 +00:00
gtk: reformat blueprints
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user