Skip to content

Commit abf6873

Browse files
committed
Use ClapperGtk.TitleHeader
1 parent 00927ff commit abf6873

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

src/player.blp

+3-30
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,17 @@ template $TvPlayer: Adw.Window {
1919
Gtk.Box {
2020
orientation: horizontal;
2121
valign: start;
22-
margin-start: 6;
23-
margin-top: 6;
24-
margin-end: 6;
25-
spacing: 6;
2622

2723
[center]
28-
ClapperGtk.LeadContainer {
29-
halign: center;
24+
ClapperGtk.TitleHeader {
3025
hexpand: true;
31-
32-
Gtk.Box {
33-
styles [
34-
"osd",
35-
"rounded",
36-
]
37-
38-
Adw.Clamp {
39-
tightening-threshold: 600;
40-
maximum-size: 600;
41-
42-
Gtk.Label {
43-
label: bind template.title;
44-
justify: center;
45-
ellipsize: end;
46-
margin-start: 6;
47-
margin-end: 6;
48-
49-
styles [
50-
"heading",
51-
]
52-
}
53-
}
54-
}
5526
}
5627

5728
[end]
5829
Gtk.Button {
30+
margin-end: 6;
5931
halign: end;
32+
valign: center;
6033
icon-name: "window-close-symbolic";
6134
action-name: "window.close";
6235

0 commit comments

Comments
 (0)