-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
exm-window.blp
137 lines (112 loc) · 3.21 KB
/
exm-window.blp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
using Gtk 4.0;
using Adw 1;
template $ExmWindow : Adw.ApplicationWindow {
width-request: 360;
height-request: 294;
title: _("Extension Manager");
Adw.Breakpoint {
condition ("max-width: 400sp")
setters {
header_bar.title-widget: null;
switcher_bar.reveal: true;
}
}
Adw.ToastOverlay toast_overlay {
child: Adw.NavigationView navigation_view {
Adw.NavigationPage main_view {
can-pop: false;
title: bind template.title;
Adw.ToolbarView {
[top]
Adw.HeaderBar header_bar {
show-back-button: false;
title-widget: Adw.ViewSwitcher title {
policy: wide;
stack: view_stack;
};
[end]
Gtk.MenuButton {
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
primary: true;
tooltip-text: _("Main Menu");
}
}
content: Gtk.Box {
orientation: vertical;
Adw.ViewStack view_stack {
vexpand: true;
hexpand: true;
Adw.ViewStackPage {
name: "installed";
title: C_("Navigation", "_Installed");
icon-name: "puzzle-piece-symbolic";
use-underline: true;
child: $ExmInstalledPage installed_page {};
}
Adw.ViewStackPage {
name: "browse";
title: C_("Navigation", "_Browse");
icon-name: "globe-symbolic";
use-underline: true;
child: $ExmBrowsePage browse_page {};
}
}
Adw.ViewSwitcherBar switcher_bar {
stack: view_stack;
}
};
}
}
$ExmDetailView detail_view {}
$ExmScreenshotView screenshot_view {
title: bind detail_view.title;
}
};
}
Gtk.ShortcutController {
scope: managed;
Gtk.Shortcut {
trigger: "<Alt>1";
action: "action(win.show-page)";
arguments: "'installed'";
}
Gtk.Shortcut {
trigger: "<Alt>2";
action: "action(win.show-page)";
arguments: "'browse'";
}
}
}
menu primary_menu {
section {
// Translators: the character preceded by "_" should not be the same
// as others in the same menu
item (_("Sort _Enabled First"), "app.sort-enabled-first")
item (_("_Show Unsupported"), "app.show-unsupported")
}
section {
item (_("_Upgrade Assistant"), "win.show-upgrade-assistant")
item (_("_About Extension Manager"), "app.about")
}
}
Adw.AlertDialog remove_dialog {
heading: _("Uninstall Extension?");
body: _("The extension's features and functionality will no longer be accessible. Are you sure you want to uninstall?");
default-response: "no";
close-response: "no";
responses [
no: _("_No"),
yes: _("_Yes") destructive
]
}
Adw.AlertDialog unsupported_dialog {
heading: _("Unsupported Extension");
body: _("This extension does not support your GNOME Shell version. It may cause errors if installed.");
default-response: "back";
close-response: "back";
responses [
install: _("_Install Anyway") destructive,
back: _("_Go Back") suggested
]
}