mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-08-20 06:34:07 +00:00
feat: use menu instead of button
This commit is contained in:
parent
4c8ef0df43
commit
43fd32b893
2 changed files with 13 additions and 5 deletions
|
@ -103,7 +103,7 @@ class GradienceApplication(Adw.Application):
|
||||||
self.show_apply_color_scheme_dialog)
|
self.show_apply_color_scheme_dialog)
|
||||||
|
|
||||||
self.create_action(
|
self.create_action(
|
||||||
"show_theme_preview",
|
"show_adwaita_demo",
|
||||||
self.open_adwaita_demo)
|
self.open_adwaita_demo)
|
||||||
|
|
||||||
self.create_action(
|
self.create_action(
|
||||||
|
|
|
@ -24,10 +24,9 @@ template GradienceMainWindow : Adw.ApplicationWindow {
|
||||||
action-name: "app.apply_color_scheme";
|
action-name: "app.apply_color_scheme";
|
||||||
}
|
}
|
||||||
[start]
|
[start]
|
||||||
Button preview-button {
|
Gtk.MenuButton {
|
||||||
label: _("Preview");
|
icon-name: "open-menu-symbolic";
|
||||||
icon-name: "web-browser-symbolic";
|
menu-model: preview-menu;
|
||||||
action-name: "app.show_theme_preview";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[title]
|
[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 {
|
Popover errors-popover {
|
||||||
ListBox errors-list {
|
ListBox errors-list {
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
|
|
Loading…
Reference in a new issue