mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-12-22 12:28:19 -06:00
set_title
This commit is contained in:
parent
b368b0ebb5
commit
5dc97ae2b0
|
@ -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