GTK cleanups 2
This commit is contained in:
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 [
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user