Wrapping up bedrock implementation
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxyui::elements::{
|
||||
Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Expanded,
|
||||
Flex, Hoverable, MainAxisAlignment, MainAxisSize, MouseStateHandle, OffsetPositioning,
|
||||
@@ -14,6 +12,8 @@ use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::Element;
|
||||
use galaxyui::EventContext;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxy_core::ui::theme::WarpTheme;
|
||||
@@ -240,9 +240,11 @@ where
|
||||
|
||||
let home_dir = dirs::home_dir();
|
||||
let raw_path = selected_directory.to_string_lossy();
|
||||
let dir_display =
|
||||
galaxy_util::path::user_friendly_path(&raw_path, home_dir.as_ref().and_then(|h| h.to_str()))
|
||||
.into_owned();
|
||||
let dir_display = galaxy_util::path::user_friendly_path(
|
||||
&raw_path,
|
||||
home_dir.as_ref().and_then(|h| h.to_str()),
|
||||
)
|
||||
.into_owned();
|
||||
|
||||
let dir_text = Text::new_inline(dir_display, appearance.ui_font_family(), 14.)
|
||||
.with_color(if on_accent_bg {
|
||||
|
||||
Reference in New Issue
Block a user