aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/apprt/gtk/ui/1.0
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-04-04 19:22:04 +0300
committerCan Celik <ogulcancelik@gmail.com>2026-04-05 01:23:06 +0300
commit41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch)
tree3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/src/apprt/gtk/ui/1.0
parent55c138263e190a1e79d4b997bfb9397306c0ec1f (diff)
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/src/apprt/gtk/ui/1.0')
-rw-r--r--vendor/libghostty-vt/src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp86
1 files changed, 86 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp b/vendor/libghostty-vt/src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp
new file mode 100644
index 00000000..5f29981d
--- /dev/null
+++ b/vendor/libghostty-vt/src/apprt/gtk/ui/1.0/clipboard-confirmation-dialog.blp
@@ -0,0 +1,86 @@
+using Gtk 4.0;
+// This is unused but if we remove it we get a blueprint-compiler error.
+using Adw 1;
+
+template $GhosttyClipboardConfirmationDialog: $GhosttyDialog {
+ styles [
+ "clipboard-confirmation-dialog",
+ ]
+
+ notify::blur => $notify_blur();
+ notify::request => $notify_request();
+ heading: _("Authorize Clipboard Access");
+ // Not localized because this is a placeholder users never see.
+ body: "If you see this text, there is a bug in Ghostty. Please report it.";
+
+ responses [
+ cancel: _("Deny") suggested,
+ ok: _("Allow") destructive,
+ ]
+
+ default-response: "cancel";
+ close-response: "cancel";
+
+ extra-child: ListBox {
+ selection-mode: none;
+
+ Overlay {
+ styles [
+ "osd",
+ "clipboard-overlay",
+ ]
+
+ ScrolledWindow text_view_scroll {
+ width-request: 500;
+ height-request: 200;
+
+ TextView text_view {
+ styles [
+ "clipboard-contents",
+ ]
+
+ cursor-visible: false;
+ editable: false;
+ monospace: true;
+ top-margin: 8;
+ left-margin: 8;
+ bottom-margin: 8;
+ right-margin: 8;
+ buffer: bind template.clipboard-contents;
+ }
+ }
+
+ [overlay]
+ Button reveal_button {
+ clicked => $reveal_clicked();
+ visible: false;
+ halign: end;
+ valign: start;
+ margin-end: 12;
+ margin-top: 12;
+
+ Image {
+ icon-name: "view-reveal-symbolic";
+ }
+ }
+
+ [overlay]
+ Button hide_button {
+ clicked => $hide_clicked();
+ visible: false;
+ halign: end;
+ valign: start;
+ margin-end: 12;
+ margin-top: 12;
+
+ styles [
+ "opaque",
+ ]
+
+ Image {
+ icon-name: "view-conceal-symbolic";
+ }
+ }
+ }
+ };
+}