mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-29 02:18:40 -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 event_loop = EventLoopBuilder::new().build().unwrap();
|
||||||
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
|
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
|
||||||
|
|
||||||
|
window.set_title(name);
|
||||||
|
|
||||||
let mut hui = UiInstance::new();
|
let mut hui = UiInstance::new();
|
||||||
let mut backend = GliumUiRenderer::new(&display);
|
let mut backend = GliumUiRenderer::new(&display);
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ use hui::{
|
||||||
mod boilerplate;
|
mod boilerplate;
|
||||||
|
|
||||||
ui_main!{
|
ui_main!{
|
||||||
|
"Mom downloader 2000",
|
||||||
init: |ui| {
|
init: |ui| {
|
||||||
let font_handle = ui.add_font(include_bytes!("../assets/roboto/Roboto-Regular.ttf"));
|
let font_handle = ui.add_font(include_bytes!("../assets/roboto/Roboto-Regular.ttf"));
|
||||||
ui.push_font(font_handle);
|
ui.push_font(font_handle);
|
||||||
|
|
Loading…
Reference in a new issue