mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 08:18:43 -06:00
owo
This commit is contained in:
parent
491bb435cc
commit
f19031662f
|
@ -26,12 +26,10 @@ fn main() {
|
||||||
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
|
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
|
||||||
|
|
||||||
let mut kui = KubiUi::new();
|
let mut kui = KubiUi::new();
|
||||||
|
|
||||||
let handle = kui.add_font_from_bytes(include_bytes!("../../assets/fonts/roboto/Roboto-Regular.ttf"));
|
|
||||||
|
|
||||||
let mut backend = GliumUiRenderer::new(&display);
|
let mut backend = GliumUiRenderer::new(&display);
|
||||||
|
|
||||||
let instant = Instant::now();
|
let font_handle = kui.add_font_from_bytes(include_bytes!("../../assets/fonts/roboto/Roboto-Regular.ttf"));
|
||||||
|
|
||||||
event_loop.run(|event, window_target| {
|
event_loop.run(|event, window_target| {
|
||||||
window_target.set_control_flow(ControlFlow::Poll);
|
window_target.set_control_flow(ControlFlow::Poll);
|
||||||
match event {
|
match event {
|
||||||
|
@ -54,7 +52,7 @@ fn main() {
|
||||||
elements: vec![
|
elements: vec![
|
||||||
Box::new(Text {
|
Box::new(Text {
|
||||||
text: "Hello_world".into(),
|
text: "Hello_world".into(),
|
||||||
font: handle,
|
font: font_handle,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
@ -188,7 +188,6 @@ impl UiDrawPlan {
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prev_command = Some(command);
|
prev_command = Some(command);
|
||||||
|
|
Loading…
Reference in a new issue