Details view improvements

This commit is contained in:
kramo
2023-04-10 15:24:24 +02:00
parent 3107bda8e0
commit d93c6aa81d
4 changed files with 56 additions and 29 deletions

View File

@@ -80,7 +80,7 @@ menu game_options {
section {
item {
label: _("Edit");
action: "app.edit_details";
action: "app.edit_game";
}
item {
@@ -99,7 +99,7 @@ menu hidden_game_options {
section {
item {
label: _("Edit");
action: "app.edit_details";
action: "app.edit_game";
}
item {

View File

@@ -122,21 +122,23 @@ template CartridgesWindow : Adw.ApplicationWindow {
]
}
Label overview_added {
Box {
orientation: horizontal;
margin-top: 12;
hexpand: true;
halign: start;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
Label overview_last_played {
margin-top: 6;
hexpand: true;
halign: start;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
Label overview_added {
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
Label overview_last_played {
margin-start: 12;
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
}
Box {
hexpand: true;
@@ -155,17 +157,42 @@ template CartridgesWindow : Adw.ApplicationWindow {
]
}
MenuButton overview_menu_button {
icon-name: "view-more-symbolic";
Box {
hexpand: true;
vexpand: true;
halign: start;
vexpand: true;
valign: center;
margin-top: 24;
margin-start: 6;
margin-start: 12;
Button {
icon-name: "document-edit-symbolic";
action-name: "app.edit_game";
tooltip-text: _("Edit");
styles [
"circular",
]
}
Button overview_hide_button {
action-name: "app.hide_game";
styles [
"circular",
]
}
Button {
icon-name: "user-trash-symbolic";
action-name: "app.remove_game";
tooltip-text: _("Remove");
styles [
"circular",
]
}
styles [
"circular",
"linked",
]
}
}