set_title

This commit is contained in:
griffi-gh 2024-03-07 00:42:01 +01:00
parent b368b0ebb5
commit 5dc97ae2b0
2 changed files with 3 additions and 0 deletions

View file

@ -37,6 +37,8 @@ pub fn ui<T>(
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);

View file

@ -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);