mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
set_title
This commit is contained in:
parent
677cc7d37d
commit
047d53016f
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue