|
1 | 1 | using Gtk 4.0; |
2 | 2 | using Adw 1; |
3 | 3 |
|
4 | | -Adw.PreferencesWindow window { |
| 4 | +Adw.Window window { |
5 | 5 | hide-on-close: true; |
6 | 6 | modal: false; |
7 | 7 | title: _("Workbench — Library"); |
8 | 8 | default-height: 700; |
9 | 9 | default-width: 700; |
10 | 10 |
|
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 | + } |
17 | 25 |
|
18 | | - Label { |
19 | | - label: _("Learn, Test, Remix"); |
| 26 | + Label { |
| 27 | + label: _("Learn, Test, Remix"); |
20 | 28 |
|
21 | | - styles [ |
22 | | - "title-1" |
23 | | - ] |
| 29 | + styles [ |
| 30 | + "title-1" |
| 31 | + ] |
| 32 | + } |
24 | 33 | } |
25 | | - } |
26 | 34 |
|
27 | | - Adw.PreferencesGroup library_uncategorized {} |
| 35 | + Adw.PreferencesGroup library_uncategorized {} |
28 | 36 |
|
29 | | - Adw.PreferencesGroup library_tools { |
30 | | - title: _("Tools"); |
31 | | - } |
| 37 | + Adw.PreferencesGroup library_tools { |
| 38 | + title: _("Tools"); |
| 39 | + } |
32 | 40 |
|
33 | | - Adw.PreferencesGroup library_network { |
34 | | - title: _("Network"); |
35 | | - } |
| 41 | + Adw.PreferencesGroup library_network { |
| 42 | + title: _("Network"); |
| 43 | + } |
36 | 44 |
|
37 | | - Adw.PreferencesGroup library_controls { |
38 | | - title: _("Controls"); |
39 | | - } |
| 45 | + Adw.PreferencesGroup library_controls { |
| 46 | + title: _("Controls"); |
| 47 | + } |
40 | 48 |
|
41 | | - Adw.PreferencesGroup library_layout { |
42 | | - title: _("Layout"); |
43 | | - } |
| 49 | + Adw.PreferencesGroup library_layout { |
| 50 | + title: _("Layout"); |
| 51 | + } |
44 | 52 |
|
45 | | - Adw.PreferencesGroup library_feedback { |
46 | | - title: _("Feedback"); |
47 | | - } |
| 53 | + Adw.PreferencesGroup library_feedback { |
| 54 | + title: _("Feedback"); |
| 55 | + } |
48 | 56 |
|
49 | | - Adw.PreferencesGroup library_navigation { |
50 | | - title: _("Navigation"); |
51 | | - } |
| 57 | + Adw.PreferencesGroup library_navigation { |
| 58 | + title: _("Navigation"); |
| 59 | + } |
52 | 60 |
|
53 | | - Adw.PreferencesGroup library_user_interface { |
54 | | - title: _("User Interface"); |
55 | | - } |
| 61 | + Adw.PreferencesGroup library_user_interface { |
| 62 | + title: _("User Interface"); |
| 63 | + } |
56 | 64 |
|
57 | | - Adw.PreferencesGroup library_platform { |
58 | | - title: _("Platform APIs"); |
59 | | - } |
| 65 | + Adw.PreferencesGroup library_platform { |
| 66 | + title: _("Platform APIs"); |
| 67 | + } |
60 | 68 |
|
61 | | - Adw.PreferencesGroup { |
62 | | - vexpand: true; |
63 | | - valign: end; |
| 69 | + Adw.PreferencesGroup { |
| 70 | + vexpand: true; |
| 71 | + valign: end; |
64 | 72 |
|
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; |
68 | 76 |
|
69 | | - styles [ |
70 | | - "caption" |
71 | | - ] |
| 77 | + styles [ |
| 78 | + "caption" |
| 79 | + ] |
| 80 | + } |
72 | 81 | } |
73 | | - } |
| 82 | + }; |
74 | 83 | } |
75 | 84 | } |
0 commit comments