Wrapping up bedrock implementation
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
use std::{borrow::Cow, sync::Arc, time::Duration};
|
||||
|
||||
use anyhow::{Result, anyhow};
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use rust_embed::RustEmbed;
|
||||
use ui_components::{
|
||||
Component as _, Options, button, dialog,
|
||||
lightbox::{self, LightboxImage, LightboxImageSource, NavigationDirection},
|
||||
switch, tooltip,
|
||||
};
|
||||
use galaxy_core::ui::{Icon, appearance::Appearance, theme::color::internal_colors};
|
||||
use galaxyui::{
|
||||
AssetProvider, SingletonEntity, Tracked,
|
||||
@@ -19,6 +12,13 @@ use galaxyui::{
|
||||
platform,
|
||||
prelude::*,
|
||||
};
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use rust_embed::RustEmbed;
|
||||
use ui_components::{
|
||||
Component as _, Options, button, dialog,
|
||||
lightbox::{self, LightboxImage, LightboxImageSource, NavigationDirection},
|
||||
switch, tooltip,
|
||||
};
|
||||
|
||||
#[derive(Clone, Copy, RustEmbed)]
|
||||
#[folder = "../../app/assets"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::{
|
||||
appearance::Appearance, color::coloru_with_opacity, theme::Fill, theme::color::internal_colors,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
/// Theming delegate for a button.
|
||||
pub trait Theme {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_geometry::vector::{Vector2F, vec2f};
|
||||
use galaxy_core::ui::{Icon, appearance::Appearance};
|
||||
use galaxyui::{
|
||||
assets::asset_cache::AssetSource,
|
||||
@@ -8,6 +7,7 @@ use galaxyui::{
|
||||
keymap::Keystroke,
|
||||
prelude::{stack::*, *},
|
||||
};
|
||||
use pathfinder_geometry::vector::{Vector2F, vec2f};
|
||||
|
||||
use crate::{Component, Options as _, button};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user