Make menu button only appear on hover

This commit is contained in:
kramo
2023-03-11 23:22:36 +01:00
parent aa77fc8bf3
commit 4b9e3666be
3 changed files with 34 additions and 18 deletions

View File

@@ -42,6 +42,23 @@ template game : Box {
margin-bottom: 6;
}
}
[overlay]
Revealer menu_revealer {
transition-type: crossfade;
MenuButton menu_button {
icon-name: "view-more-symbolic";
margin-top: 6;
margin-bottom: 6;
margin-end: 6;
margin-start: 6;
menu-model: game_options;
halign: end;
styles [
"flat",
]
}
}
Revealer title_revealer {
transition-type: crossfade;
reveal-child: true;
@@ -51,22 +68,10 @@ template game : Box {
hexpand: true;
halign: start;
margin-start: 12;
margin-end: 12;
}
}
}
MenuButton menu_button {
icon-name: "view-more-symbolic";
margin-top: 6;
margin-bottom: 6;
margin-end: 6;
margin-start: 6;
menu-model: game_options;
styles [
"flat",
]
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 KiB

After

Width:  |  Height:  |  Size: 911 KiB