mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-15 06:38:10 +00:00
feat: use menu instead of button
This commit is contained in:
parent
4c8ef0df43
commit
43fd32b893
|
@ -103,7 +103,7 @@ class GradienceApplication(Adw.Application):
|
|||
self.show_apply_color_scheme_dialog)
|
||||
|
||||
self.create_action(
|
||||
"show_theme_preview",
|
||||
"show_adwaita_demo",
|
||||
self.open_adwaita_demo)
|
||||
|
||||
self.create_action(
|
||||
|
|
|
@ -24,10 +24,9 @@ template GradienceMainWindow : Adw.ApplicationWindow {
|
|||
action-name: "app.apply_color_scheme";
|
||||
}
|
||||
[start]
|
||||
Button preview-button {
|
||||
label: _("Preview");
|
||||
icon-name: "web-browser-symbolic";
|
||||
action-name: "app.show_theme_preview";
|
||||
Gtk.MenuButton {
|
||||
icon-name: "open-menu-symbolic";
|
||||
menu-model: preview-menu;
|
||||
}
|
||||
|
||||
[title]
|
||||
|
@ -148,6 +147,15 @@ menu main-menu {
|
|||
}
|
||||
}
|
||||
|
||||
menu preview-menu {
|
||||
section {
|
||||
item {
|
||||
label: _("Try Adwaita Demo");
|
||||
action: "app.show_adwaita_demo"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Popover errors-popover {
|
||||
ListBox errors-list {
|
||||
selection-mode: none;
|
||||
|
|
Loading…
Reference in a new issue