Wrapping up bedrock implementation
This commit is contained in:
@@ -3,8 +3,8 @@ use std::borrow::Cow;
|
||||
pub mod root_view;
|
||||
|
||||
extern crate galaxyui;
|
||||
use rust_embed::RustEmbed;
|
||||
use galaxyui::{platform, AssetProvider};
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(Clone, Copy, RustEmbed)]
|
||||
#[folder = "examples/assets"]
|
||||
@@ -26,7 +26,9 @@ fn main() -> Result<()> {
|
||||
let app_builder =
|
||||
platform::AppBuilder::new(platform::AppCallbacks::default(), Box::new(ASSETS), None);
|
||||
let _ = app_builder.run(move |ctx| {
|
||||
ctx.add_window(galaxyui::AddWindowOptions::default(), |_| root_view::RootView);
|
||||
ctx.add_window(galaxyui::AddWindowOptions::default(), |_| {
|
||||
root_view::RootView
|
||||
});
|
||||
});
|
||||
|
||||
Ok(())
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxyui::elements::{
|
||||
Align, ConstrainedBox, Container, CornerRadius, DropShadow, Radius, Shrinkable,
|
||||
};
|
||||
@@ -6,6 +5,7 @@ use galaxyui::{
|
||||
elements::{Flex, ParentElement, Rect},
|
||||
AppContext, Element, Entity, TypedActionView, View,
|
||||
};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use galaxyui::color::ColorU;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user