blob: a05986b4a498c78738f237bf1221bef09929a9a4 (
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
|
using Gtk 4.0;
using Adw 1;
// We can't inherit directly from Label because its an opaque
// type in zig-gobject.
template $GhosttyResizeOverlay: Adw.Bin {
visible: false;
can-focus: false;
can-target: false;
focusable: false;
focus-on-click: false;
duration: 750;
first-delay: 250;
overlay-halign: center;
overlay-valign: center;
// See surface.blp for why we need to wrap this.
Adw.Bin {
Label label {
styles [
"background",
"resize-overlay",
]
can-focus: false;
can-target: false;
focusable: false;
focus-on-click: false;
selectable: false;
justify: center;
halign: bind template.overlay-halign;
valign: bind template.overlay-valign;
}
}
}
|