fix(hexagon_launcher/text): fix text alignment and set bounding size to a more reasonable value

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-09-06 03:44:44 +02:00
parent b03a345bf3
commit 4a35234abe

View File

@@ -147,10 +147,10 @@ impl Reify for App {
Text::new(self.app.name().unwrap_or_default()) Text::new(self.app.name().unwrap_or_default())
.character_height(0.005) .character_height(0.005)
.bounds(TextBounds { .bounds(TextBounds {
bounds: [0.5, 0.5].into(), bounds: [0.05, 0.05].into(),
fit: TextFit::Wrap, fit: TextFit::Wrap,
anchor_align_x: XAlign::Center, anchor_align_x: XAlign::Center,
anchor_align_y: YAlign::Top, anchor_align_y: YAlign::Center,
}) })
.text_align_x(XAlign::Center) .text_align_x(XAlign::Center)
.text_align_y(YAlign::Center) .text_align_y(YAlign::Center)