Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use warp_core::ui::{appearance::Appearance, theme::color::internal_colors, Icon};
|
||||
use warpui::{
|
||||
use galaxy_core::ui::{appearance::Appearance, theme::color::internal_colors, Icon};
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Border, ChildAnchor, ChildView, ConstrainedBox, Container, CornerRadius,
|
||||
CrossAxisAlignment, Empty, Fill, Flex, Hoverable, MouseStateHandle, OffsetPositioning,
|
||||
@@ -12,12 +12,12 @@ use warpui::{
|
||||
AppContext, Element, Entity, EntityId, ModelHandle, SingletonEntity as _, TypedActionView,
|
||||
View, ViewContext, ViewHandle,
|
||||
};
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{ParentElement, ParentOffsetBounds},
|
||||
ui_components::components::UiComponent,
|
||||
};
|
||||
|
||||
use warp_core::features::FeatureFlag;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
|
||||
use crate::{
|
||||
ai::{
|
||||
@@ -34,7 +34,7 @@ use crate::{
|
||||
ui_components::blended_colors,
|
||||
AIAgentTodoList, BlocklistAIHistoryModel,
|
||||
};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
|
||||
const TODO_BUTTON_SAVE_POSITION_ID: &str = "plan_and_todo_list::todo_button";
|
||||
|
||||
@@ -213,7 +213,7 @@ impl PlanAndTodoListView {
|
||||
let icon_element = Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::Compass
|
||||
.to_warpui_icon(if self.is_in_agent_view {
|
||||
.to_galaxyui_icon(if self.is_in_agent_view {
|
||||
theme.sub_text_color(blended_colors::neutral_1(theme).into())
|
||||
} else {
|
||||
internal_colors::fg_overlay_7(appearance.theme())
|
||||
@@ -436,8 +436,8 @@ impl PlanAndTodoListView {
|
||||
OffsetPositioning::offset_from_save_position_element(
|
||||
TODO_BUTTON_SAVE_POSITION_ID,
|
||||
vec2f(0., 4.),
|
||||
warpui::elements::PositionedElementOffsetBounds::WindowByPosition,
|
||||
warpui::elements::PositionedElementAnchor::BottomLeft,
|
||||
galaxyui::elements::PositionedElementOffsetBounds::WindowByPosition,
|
||||
galaxyui::elements::PositionedElementAnchor::BottomLeft,
|
||||
ChildAnchor::TopLeft,
|
||||
)
|
||||
}
|
||||
@@ -445,8 +445,8 @@ impl PlanAndTodoListView {
|
||||
OffsetPositioning::offset_from_save_position_element(
|
||||
TODO_BUTTON_SAVE_POSITION_ID,
|
||||
vec2f(0., -4.),
|
||||
warpui::elements::PositionedElementOffsetBounds::WindowByPosition,
|
||||
warpui::elements::PositionedElementAnchor::TopLeft,
|
||||
galaxyui::elements::PositionedElementOffsetBounds::WindowByPosition,
|
||||
galaxyui::elements::PositionedElementAnchor::TopLeft,
|
||||
ChildAnchor::BottomLeft,
|
||||
)
|
||||
}
|
||||
@@ -470,7 +470,7 @@ impl View for PlanAndTodoListView {
|
||||
"PlanAndTodoListView"
|
||||
}
|
||||
|
||||
fn render(&self, app: &AppContext) -> Box<dyn warpui::Element> {
|
||||
fn render(&self, app: &AppContext) -> Box<dyn galaxyui::Element> {
|
||||
let appearance = Appearance::as_ref(app);
|
||||
|
||||
// Calculate icon size
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use warp_core::ui::appearance::Appearance;
|
||||
use warpui::{
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
ConstrainedBox, Container, CrossAxisAlignment, Flex, FormattedTextElement,
|
||||
HighlightedHyperlink, HyperlinkLens, MainAxisAlignment, MainAxisSize, ParentElement,
|
||||
@@ -499,7 +499,7 @@ impl View for PromptAlertView {
|
||||
chip_row.add_child(
|
||||
ConstrainedBox::new(
|
||||
Icon::AlertTriangle
|
||||
.to_warpui_icon(error_color(appearance.theme()).into())
|
||||
.to_galaxyui_icon(error_color(appearance.theme()).into())
|
||||
.finish(),
|
||||
)
|
||||
.with_width(icon_size)
|
||||
|
||||
Reference in New Issue
Block a user