Skip to content

Commit 5a29338

Browse files
authored
library: Remove usage of Adw.PreferencesWindow (#949)
1 parent ea18e42 commit 5a29338

2 files changed

Lines changed: 58 additions & 49 deletions

File tree

src/Library/Library.blp

Lines changed: 57 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,84 @@
11
using Gtk 4.0;
22
using Adw 1;
33

4-
Adw.PreferencesWindow window {
4+
Adw.Window window {
55
hide-on-close: true;
66
modal: false;
77
title: _("Workbench — Library");
88
default-height: 700;
99
default-width: 700;
1010

11-
Adw.PreferencesPage {
12-
Adw.PreferencesGroup {
13-
Picture picture_illustration {
14-
can-shrink: false;
15-
margin-bottom: 32;
16-
}
11+
Adw.ToolbarView toolbar_view {
12+
[top]
13+
Adw.HeaderBar header_bar {
14+
title-widget: Adw.WindowTitle {
15+
title: _("Workbench — Library");
16+
};
17+
}
18+
19+
content: Adw.PreferencesPage {
20+
Adw.PreferencesGroup {
21+
Picture picture_illustration {
22+
can-shrink: false;
23+
margin-bottom: 32;
24+
}
1725

18-
Label {
19-
label: _("Learn, Test, Remix");
26+
Label {
27+
label: _("Learn, Test, Remix");
2028

21-
styles [
22-
"title-1"
23-
]
29+
styles [
30+
"title-1"
31+
]
32+
}
2433
}
25-
}
2634

27-
Adw.PreferencesGroup library_uncategorized {}
35+
Adw.PreferencesGroup library_uncategorized {}
2836

29-
Adw.PreferencesGroup library_tools {
30-
title: _("Tools");
31-
}
37+
Adw.PreferencesGroup library_tools {
38+
title: _("Tools");
39+
}
3240

33-
Adw.PreferencesGroup library_network {
34-
title: _("Network");
35-
}
41+
Adw.PreferencesGroup library_network {
42+
title: _("Network");
43+
}
3644

37-
Adw.PreferencesGroup library_controls {
38-
title: _("Controls");
39-
}
45+
Adw.PreferencesGroup library_controls {
46+
title: _("Controls");
47+
}
4048

41-
Adw.PreferencesGroup library_layout {
42-
title: _("Layout");
43-
}
49+
Adw.PreferencesGroup library_layout {
50+
title: _("Layout");
51+
}
4452

45-
Adw.PreferencesGroup library_feedback {
46-
title: _("Feedback");
47-
}
53+
Adw.PreferencesGroup library_feedback {
54+
title: _("Feedback");
55+
}
4856

49-
Adw.PreferencesGroup library_navigation {
50-
title: _("Navigation");
51-
}
57+
Adw.PreferencesGroup library_navigation {
58+
title: _("Navigation");
59+
}
5260

53-
Adw.PreferencesGroup library_user_interface {
54-
title: _("User Interface");
55-
}
61+
Adw.PreferencesGroup library_user_interface {
62+
title: _("User Interface");
63+
}
5664

57-
Adw.PreferencesGroup library_platform {
58-
title: _("Platform APIs");
59-
}
65+
Adw.PreferencesGroup library_platform {
66+
title: _("Platform APIs");
67+
}
6068

61-
Adw.PreferencesGroup {
62-
vexpand: true;
63-
valign: end;
69+
Adw.PreferencesGroup {
70+
vexpand: true;
71+
valign: end;
6472

65-
Label {
66-
label: _('All examples are dedicated to the public domain\nand <b>can be used freely</b> under the terms of <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>');
67-
use-markup: true;
73+
Label {
74+
label: _("All examples are dedicated to the public domain\nand <b>can be used freely</b> under the terms of <a href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</a>");
75+
use-markup: true;
6876

69-
styles [
70-
"caption"
71-
]
77+
styles [
78+
"caption"
79+
]
80+
}
7281
}
73-
}
82+
};
7483
}
7584
}

0 commit comments

Comments
 (0)