mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-29 02:18:40 -06:00
a
This commit is contained in:
parent
0a7392684a
commit
2937f8e7e3
|
@ -1,5 +1,5 @@
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
use glam::{UVec2, vec4};
|
use glam::{vec3, vec4, UVec2};
|
||||||
use glium::{backend::glutin::SimpleWindowBuilder, Surface};
|
use glium::{backend::glutin::SimpleWindowBuilder, Surface};
|
||||||
use winit::{
|
use winit::{
|
||||||
event::{Event, WindowEvent},
|
event::{Event, WindowEvent},
|
||||||
|
@ -44,6 +44,7 @@ fn main() {
|
||||||
Container::default()
|
Container::default()
|
||||||
.with_size((UiSize::Fraction(1.), UiSize::Fraction(1.)))
|
.with_size((UiSize::Fraction(1.), UiSize::Fraction(1.)))
|
||||||
.with_padding(Sides::all(5.))
|
.with_padding(Sides::all(5.))
|
||||||
|
.with_background(vec3(1., 0., 0.))
|
||||||
.with_children(|ui: &mut ElementList| {
|
.with_children(|ui: &mut ElementList| {
|
||||||
Text::default()
|
Text::default()
|
||||||
.with_text("Hello, world")
|
.with_text("Hello, world")
|
||||||
|
|
Loading…
Reference in a new issue