Fix overlay layering

This commit is contained in:
kramo
2023-03-11 23:41:25 +01:00
parent ddf73dbc03
commit 4ed6ab2bab
2 changed files with 27 additions and 32 deletions

View File

@@ -30,33 +30,32 @@ template game : Box {
Box {
Overlay overlay {
[overlay]
Revealer button_revealer {
Revealer play_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;
}
}
[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;
Box {
Button button_play {
halign: start;
label: _("Play");
margin-start: 6;
margin-end: 6;
margin-top: 6;
margin-bottom: 6;
}
MenuButton menu_button {
icon-name: "view-more-symbolic";
margin-top: 6;
margin-bottom: 6;
margin-end: 6;
margin-start: 6;
menu-model: game_options;
hexpand: true;
halign: end;
styles [
"flat",
]
styles [
"flat",
]
}
}
}
Revealer title_revealer {