Skip to content

Commit

Permalink
center instead of allign center
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartonrealista committed Jul 19, 2024
1 parent cd24ea1 commit 2942585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ fn playfield(game: &Game) -> widget::Container<'_, Message, cosmic::Theme> {
),
)
.padding(20)
.align_x(Horizontal::Center)
.align_y(Vertical::Center)
.center_x()
.center_y()
}

fn centralize_tile_content(tile_content: Text<Theme, Renderer>) -> Text<Theme, Renderer> {
Expand Down

0 comments on commit 2942585

Please sign in to comment.