From 047d53016fb3d63d34e3ac89b2dbec536fbe43b8 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 7 Mar 2024 00:42:01 +0100 Subject: [PATCH] set_title --- hui-examples/boilerplate.rs | 2 ++ hui-examples/examples/mom_downloader.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/hui-examples/boilerplate.rs b/hui-examples/boilerplate.rs index f9e6db3..146fb1e 100644 --- a/hui-examples/boilerplate.rs +++ b/hui-examples/boilerplate.rs @@ -37,6 +37,8 @@ pub fn ui( let event_loop = EventLoopBuilder::new().build().unwrap(); let (window, display) = SimpleWindowBuilder::new().build(&event_loop); + window.set_title(name); + let mut hui = UiInstance::new(); let mut backend = GliumUiRenderer::new(&display); diff --git a/hui-examples/examples/mom_downloader.rs b/hui-examples/examples/mom_downloader.rs index c4ea751..7685c40 100644 --- a/hui-examples/examples/mom_downloader.rs +++ b/hui-examples/examples/mom_downloader.rs @@ -15,6 +15,7 @@ use hui::{ mod boilerplate; ui_main!{ + "Mom downloader 2000", init: |ui| { let font_handle = ui.add_font(include_bytes!("../assets/roboto/Roboto-Regular.ttf")); ui.push_font(font_handle);