From 537d138651a00bcbe35511f585fbd526b1406936 Mon Sep 17 00:00:00 2001
From: griffi-gh <prasol258@gmail.com>
Date: Tue, 11 Mar 2025 10:38:06 +0100
Subject: [PATCH] fix example 2

---
 hui-examples/examples/ui_test_2_loading.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/hui-examples/examples/ui_test_2_loading.rs b/hui-examples/examples/ui_test_2_loading.rs
index ce90ca0..73e484e 100644
--- a/hui-examples/examples/ui_test_2_loading.rs
+++ b/hui-examples/examples/ui_test_2_loading.rs
@@ -10,8 +10,8 @@ use hui::{
   },
   layout::Alignment,
   rect::Corners,
-  text::FontHandle
 };
+use hui_painter::text::FontHandle;
 
 #[path = "../boilerplate.rs"]
 #[macro_use]
@@ -53,7 +53,7 @@ ui_main!(
             Text::default()
               .with_text("Loading...")
               .with_color((1., 1., 1., flash))
-              .with_text_size(24)
+              .with_text_size(24.)
               .add_child(ui);
           })
           .add_child(ui);
@@ -76,11 +76,11 @@ ui_main!(
           .with_children(|ui| {
             Text::default()
               .with_text("Did  you  know?")
-              .with_text_size(18)
+              .with_text_size(18.)
               .add_child(ui);
             Text::default()
               .with_text("You can die by jumping into the spike pit! :D\nCheck out the tutorial section for more tips.")
-              .with_text_size(24)
+              .with_text_size(24.)
               .with_font(FontHandle::default())
               .add_child(ui);
           })
@@ -117,11 +117,11 @@ ui_main!(
           .with_children(|ui| {
             Text::default()
               .with_text("Level 5")
-              .with_text_size(24)
+              .with_text_size(24.)
               .add_child(ui);
             Text::default()
               .with_text("XP: 1234 / 5000")
-              .with_text_size(18)
+              .with_text_size(18.)
               .with_font(FontHandle::default())
               .add_child(ui);
           })