center anchors on 0 0

This commit is contained in:
2025-08-10 20:29:16 -04:00
parent 848347e6b3
commit f2cbf90d1d
7 changed files with 24 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
use std::sync::Arc;
use app::App;
use gui::{primitive::Axis, RoundedRect, UIColor, WidgetArrUtil, WidgetUtil, UI};
use gui::{RoundedRect, UI, UIColor, WidgetArrUtil, WidgetUtil, primitive::Axis};
use render::Renderer;
use winit::{event::WindowEvent, event_loop::ActiveEventLoop, window::Window};
@@ -50,6 +50,7 @@ impl Client {
.span(Axis::Y, [3, 1])
.pad(10),
);
// let mut ui = ui.finish((blue, rect.color(UIColor::RED)).span(Axis::X, [1, 1]));
ui.widgets.get_mut(&handle).unwrap().color = UIColor::MAGENTA;
renderer.update(&ui);
Self { renderer }