Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{Container, Flex, MouseStateHandle, ParentElement},
|
||||
fonts::Weight,
|
||||
ui_components::components::{UiComponent, UiComponentStyles},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{elements::MouseStateHandle, AppContext, Element};
|
||||
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
|
||||
|
||||
use crate::{
|
||||
appearance::Appearance,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use itertools::Itertools;
|
||||
use warp_core::context_flag::ContextFlag;
|
||||
use warpui::{
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxyui::{
|
||||
elements::{Clipped, Container, Flex, MouseStateHandle, ParentElement},
|
||||
fonts::Weight,
|
||||
ui_components::components::{UiComponent, UiComponentStyles},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warpui::{elements::MouseStateHandle, AppContext, Element};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
|
||||
|
||||
use crate::{
|
||||
appearance::Appearance,
|
||||
@@ -52,7 +52,7 @@ impl WarpDriveItem for WarpDriveFolder {
|
||||
Icon::from(DriveObjectType::Folder)
|
||||
};
|
||||
|
||||
Some(icon.to_warpui_icon(icon_fill).finish())
|
||||
Some(icon.to_galaxyui_icon(icon_fill).finish())
|
||||
}
|
||||
|
||||
fn secondary_icon(&self, _color: Option<Fill>) -> Option<Box<dyn Element>> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use pathfinder_geometry::{rect::RectF, vector::Vector2F};
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
AcceptedByDropTarget, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius,
|
||||
CrossAxisAlignment, Draggable, DraggableState, DropShadow, Empty, Flex, Hoverable,
|
||||
@@ -110,7 +110,7 @@ impl WarpDriveItemStyles {
|
||||
.set_font_size(ITEM_FONT_SIZE)
|
||||
.set_font_color(theme.foreground().into())
|
||||
.set_background(
|
||||
warp_core::ui::theme::color::internal_colors::fg_overlay_4(theme).into(),
|
||||
galaxy_core::ui::theme::color::internal_colors::fg_overlay_4(theme).into(),
|
||||
)
|
||||
.set_border_color(theme.accent().into()),
|
||||
hovered: UiComponentStyles::default()
|
||||
@@ -118,7 +118,7 @@ impl WarpDriveItemStyles {
|
||||
.set_font_size(ITEM_FONT_SIZE)
|
||||
.set_font_color(blended_colors::text_main(theme, background))
|
||||
.set_background(
|
||||
warp_core::ui::theme::color::internal_colors::fg_overlay_2(theme).into(),
|
||||
galaxy_core::ui::theme::color::internal_colors::fg_overlay_2(theme).into(),
|
||||
),
|
||||
}
|
||||
}
|
||||
@@ -461,7 +461,7 @@ impl<'a> WarpDriveRow<'a> {
|
||||
let text_color = appearance.theme().sub_text_color(background);
|
||||
|
||||
let icon = Container::new(
|
||||
ConstrainedBox::new(Icon::Users.to_warpui_icon(text_color).finish())
|
||||
ConstrainedBox::new(Icon::Users.to_galaxyui_icon(text_color).finish())
|
||||
.with_height(15.)
|
||||
.with_width(15.)
|
||||
.finish(),
|
||||
@@ -509,7 +509,7 @@ impl<'a> WarpDriveRow<'a> {
|
||||
Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::Clock
|
||||
.to_warpui_icon(
|
||||
.to_galaxyui_icon(
|
||||
appearance
|
||||
.theme()
|
||||
.sub_text_color(appearance.theme().surface_2()),
|
||||
@@ -587,7 +587,7 @@ impl<'a> WarpDriveRow<'a> {
|
||||
});
|
||||
|
||||
Container::new(
|
||||
ConstrainedBox::new(chevron_icon.to_warpui_icon(icon_color.into()).finish())
|
||||
ConstrainedBox::new(chevron_icon.to_galaxyui_icon(icon_color.into()).finish())
|
||||
.with_width(16.)
|
||||
.with_height(16.)
|
||||
.finish(),
|
||||
|
||||
@@ -6,7 +6,7 @@ use crate::{
|
||||
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
|
||||
themes::theme::Fill,
|
||||
};
|
||||
use warpui::{elements::MouseStateHandle, AppContext, Element};
|
||||
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct WarpDriveMCPServer {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{elements::MouseStateHandle, AppContext, Element};
|
||||
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
|
||||
|
||||
use crate::{
|
||||
appearance::Appearance,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{elements::MouseStateHandle, AppContext, Element};
|
||||
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
|
||||
|
||||
use crate::{
|
||||
appearance::Appearance,
|
||||
@@ -44,7 +44,7 @@ pub trait WarpDriveItem {
|
||||
fn icon(&self, appearance: &Appearance, color: Option<Fill>) -> Option<Box<dyn Element>> {
|
||||
let object_type = self.object_type()?;
|
||||
let icon_fill = color.unwrap_or(warp_drive_icon_color(appearance, object_type).into());
|
||||
Some(Icon::from(object_type).to_warpui_icon(icon_fill).finish())
|
||||
Some(Icon::from(object_type).to_galaxyui_icon(icon_fill).finish())
|
||||
}
|
||||
|
||||
/// If implemented, returns a string that summarizes the primary action history. For example, "Run 2 times in the last week"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{Flex, MouseStateHandle, ParentElement},
|
||||
fonts::Weight,
|
||||
ui_components::components::{UiComponent, UiComponentStyles},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{elements::MouseStateHandle, Element};
|
||||
use galaxyui::{elements::MouseStateHandle, Element};
|
||||
|
||||
use crate::{
|
||||
appearance::Appearance,
|
||||
@@ -63,7 +63,7 @@ impl WarpDriveItem for WarpDriveSpace {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn action_summary(&self, _app: &warpui::AppContext) -> Option<String> {
|
||||
fn action_summary(&self, _app: &galaxyui::AppContext) -> Option<String> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use warp_core::context_flag::ContextFlag;
|
||||
use warpui::{
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxyui::{
|
||||
elements::{Container, Flex, MouseStateHandle, ParentElement},
|
||||
fonts::Weight,
|
||||
ui_components::components::{UiComponent, UiComponentStyles},
|
||||
@@ -71,7 +71,7 @@ impl WarpDriveItem for WarpDriveWorkflow {
|
||||
|
||||
fn preview(&self, appearance: &Appearance) -> Option<Box<dyn Element>> {
|
||||
let mut modal =
|
||||
Flex::column().with_cross_axis_alignment(warpui::elements::CrossAxisAlignment::Stretch);
|
||||
Flex::column().with_cross_axis_alignment(galaxyui::elements::CrossAxisAlignment::Stretch);
|
||||
|
||||
let mut text = Flex::column()
|
||||
.with_child(Container::new(self.render_workflow_name(appearance)).finish());
|
||||
|
||||
Reference in New Issue
Block a user