From 6cb7abad4c8c75398a47cdff520f4f3b64dd26d4 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Wed, 7 Feb 2024 20:52:35 +0100 Subject: [PATCH] Mcdu: add margin and make all keys same size --- src/ui/app.rs | 4 +++- src/ui/mcdu.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/app.rs b/src/ui/app.rs index 218edb3..a36333e 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -54,7 +54,9 @@ impl AsyncComponent for AppModel { set_hexpand: true, }, }, - model.mcdu.widget(), + model.mcdu.widget() { + set_margin_all: 10, + }, } } } diff --git a/src/ui/mcdu.rs b/src/ui/mcdu.rs index d7193c2..df51b9a 100644 --- a/src/ui/mcdu.rs +++ b/src/ui/mcdu.rs @@ -50,6 +50,8 @@ impl SimpleComponent for McduModel { }, #[name = "keyboard"] gtk::Grid { + set_column_homogeneous: true, + set_row_homogeneous: true, set_column_spacing: 5, set_row_spacing: 5, }