aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/apprt/gtk/ui/1.5/inspector-window.blp
blob: a7625bc2c6b6ce44a461da634159a8b6ca3062ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Gtk 4.0;
using Adw 1;

template $GhosttyInspectorWindow: Adw.ApplicationWindow {
  title: _("Ghostty: Terminal Inspector");
  icon-name: "com.mitchellh.ghostty";
  default-width: 1000;
  default-height: 600;

  styles [
    "inspector",
  ]

  content: Adw.ToolbarView {
    [top]
    Adw.HeaderBar {
      title-widget: Adw.WindowTitle {
        title: bind template.title;
      };
    }

    Gtk.Box {
      orientation: vertical;
      spacing: 0;
      hexpand: true;
      vexpand: true;

      $GhosttyDebugWarning {
        visible: bind template.debug;
      }

      $GhosttyInspectorWidget inspector_widget {
        notify::surface => $notify_inspector_surface();
        surface: bind template.surface;
      }
    }
  };
}