Show play button on hover - closes #4

This commit is contained in:
kramo
2023-03-11 22:07:56 +01:00
parent 2e1acc4a2e
commit aa77fc8bf3
3 changed files with 47 additions and 22 deletions

View File

@@ -28,12 +28,31 @@ template game : Box {
maximum-size: 200;
Box {
Label title {
label: _("Title");
ellipsize: end;
hexpand: true;
halign: start;
margin-start: 12;
Overlay overlay {
[overlay]
Revealer button_revealer {
reveal-child: false;
transition-type: crossfade;
Button button_play {
halign: start;
label: _("Play");
margin-start: 6;
margin-end: 6;
margin-top: 6;
margin-bottom: 6;
}
}
Revealer title_revealer {
transition-type: crossfade;
reveal-child: true;
Label title {
label: _("Title");
ellipsize: end;
hexpand: true;
halign: start;
margin-start: 12;
}
}
}
MenuButton menu_button {
@@ -57,13 +76,6 @@ template game : Box {
}
menu game_options {
section {
item {
label: _("Play");
action: "app.launch_game";
}
}
section {
item {
label: _("Edit");
@@ -83,13 +95,6 @@ menu game_options {
}
menu hidden_game_options {
section {
item {
label: _("Play");
action: "app.launch_game";
}
}
section {
item {
label: _("Edit");