diff --git a/data/gtk/game.blp b/data/gtk/game.blp index cfafcb1..786db10 100644 --- a/data/gtk/game.blp +++ b/data/gtk/game.blp @@ -16,35 +16,37 @@ template $Game : Box { valign: start; halign: start; - Box { - halign: start; - valign: end; + Button play_button { + icon-name: "media-playback-start-symbolic"; + margin-start: 6; + margin-end: 3; + margin-top: 6; + margin-bottom: 3; - Button play_button { - icon-name: "media-playback-start-symbolic"; - margin-start: 6; - margin-end: 3; - margin-top: 6; - margin-bottom: 3; + styles [ + "circular", + "osd", + ] + } + } - styles [ - "circular", - "osd", - ] - } + [overlay] + Revealer menu_revealer { + transition-type: crossfade; + valign: start; + halign: end; - MenuButton menu_button { - icon-name: "view-more-symbolic"; - margin-start: 3; - margin-end: 3; - margin-top: 6; - margin-bottom: 3; + MenuButton menu_button { + icon-name: "view-more-symbolic"; + margin-start: 3; + margin-end: 6; + margin-top: 6; + margin-bottom: 3; - styles [ - "circular", - "osd", - ] - } + styles [ + "circular", + "osd", + ] } } diff --git a/data/gtk/window.blp b/data/gtk/window.blp index 02822c6..5e7b172 100644 --- a/data/gtk/window.blp +++ b/data/gtk/window.blp @@ -194,23 +194,30 @@ template $CartridgesWindow : Adw.ApplicationWindow { icon-name: "document-edit-symbolic"; action-name: "app.edit_game"; tooltip-text: _("Edit"); + + styles ["raised", "circular"] } Button details_view_hide_button { action-name: "app.hide_game"; + + styles ["raised", "circular"] } Button { icon-name: "user-trash-symbolic"; action-name: "app.remove_game"; tooltip-text: _("Remove"); + + styles ["raised", "circular"] } MenuButton { icon-name: "system-search-symbolic"; menu-model: search; tooltip-text: _("Search"); - always-show-arrow: true; + + styles ["raised", "circular"] } styles [ diff --git a/src/game.py b/src/game.py index fb73f77..8f0a13e 100644 --- a/src/game.py +++ b/src/game.py @@ -41,6 +41,7 @@ class Game(Gtk.Box): cover_button = Gtk.Template.Child() menu_button = Gtk.Template.Child() play_revealer = Gtk.Template.Child() + menu_revealer = Gtk.Template.Child() game_options = Gtk.Template.Child() hidden_game_options = Gtk.Template.Child() @@ -252,6 +253,7 @@ class Game(Gtk.Box): def toggle_play(self, _widget, _prop1, _prop2, state=True): if not self.menu_button.get_active(): self.play_revealer.set_reveal_child(not state) + self.menu_revealer.set_reveal_child(not state) def main_button_clicked(self, _widget, button): if shared.schema.get_boolean("cover-launches-game") ^ button: