From 98f5a3d544a661a05184c6286c992ed61cf273c3 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 18 Dec 2023 13:35:05 -0500 Subject: [PATCH] Center text on welcome screen (#3699) This PR centers the text "Code at the speed of thought" on the welcome screen. Release Notes: - N/A --- crates/welcome2/src/welcome.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/welcome2/src/welcome.rs b/crates/welcome2/src/welcome.rs index c553a04fc7bcad5c7be3ca980a84581dacfa0d69..91620595ce557dbf0e1a5227ec75f2366a999066 100644 --- a/crates/welcome2/src/welcome.rs +++ b/crates/welcome2/src/welcome.rs @@ -74,7 +74,11 @@ impl Render for WelcomePage { .h(px(96.)) .mx_auto(), ) - .child(Label::new("Code at the speed of thought")) + .child( + h_stack() + .justify_center() + .child(Label::new("Code at the speed of thought")), + ) .child( v_stack() .gap_2()