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"]
|
||||
|
||||
@@ -80,7 +80,9 @@ impl View for RootView {
|
||||
),
|
||||
)
|
||||
.with_dragbar_side(DragBarSide::Bottom)
|
||||
.with_dragbar_color(galaxyui::elements::Fill::Solid(ColorU::new(0, 255, 255, 200)))
|
||||
.with_dragbar_color(galaxyui::elements::Fill::Solid(ColorU::new(
|
||||
0, 255, 255, 200,
|
||||
)))
|
||||
.on_resize(move |ctx, _| {
|
||||
ctx.notify();
|
||||
})
|
||||
@@ -114,7 +116,9 @@ impl View for RootView {
|
||||
),
|
||||
)
|
||||
.with_dragbar_side(DragBarSide::Right)
|
||||
.with_dragbar_color(galaxyui::elements::Fill::Solid(ColorU::new(255, 255, 0, 200)))
|
||||
.with_dragbar_color(galaxyui::elements::Fill::Solid(ColorU::new(
|
||||
255, 255, 0, 200,
|
||||
)))
|
||||
.on_resize(move |ctx, _| {
|
||||
ctx.notify();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user