Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::{
|
||||
PaneViewLocator,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use warpui::{Entity, EntityId, ModelContext, SingletonEntity, ViewHandle, WindowId};
|
||||
use galaxyui::{Entity, EntityId, ModelContext, SingletonEntity, ViewHandle, WindowId};
|
||||
|
||||
/// Singleton model to manage state of AI fact panes across multiple windows
|
||||
/// (where only one AI fact pane can exist per window). Specifically:
|
||||
|
||||
@@ -13,7 +13,7 @@ use crate::{
|
||||
drive::CloudObjectTypeAndId,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use warp_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
|
||||
pub mod manager;
|
||||
pub mod view;
|
||||
|
||||
@@ -8,8 +8,8 @@ use crate::pane_group::{pane::view, BackingView, PaneConfiguration, PaneEvent};
|
||||
use crate::server::ids::SyncId;
|
||||
use crate::server::sync_queue::SyncQueue;
|
||||
use std::path::PathBuf;
|
||||
use warp_core::ui::appearance::Appearance;
|
||||
use warpui::{
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Align, ClippedScrollStateHandle, ClippedScrollable, ConstrainedBox, Container,
|
||||
CrossAxisAlignment, Expanded, Flex, MainAxisAlignment, MainAxisSize, ParentElement,
|
||||
@@ -20,8 +20,8 @@ use warpui::{
|
||||
};
|
||||
|
||||
use crate::ui_components::icons::Icon;
|
||||
use warpui::elements::ChildView;
|
||||
use warpui::{SingletonEntity, ViewHandle};
|
||||
use galaxyui::elements::ChildView;
|
||||
use galaxyui::{SingletonEntity, ViewHandle};
|
||||
|
||||
use super::{AIFact, CloudAIFact, CloudAIFactModel};
|
||||
|
||||
@@ -192,7 +192,7 @@ impl AIFactView {
|
||||
.with_child(
|
||||
ConstrainedBox::new(
|
||||
Icon::CloudOffline
|
||||
.to_warpui_icon(
|
||||
.to_galaxyui_icon(
|
||||
appearance
|
||||
.theme()
|
||||
.sub_text_color(appearance.theme().surface_2()),
|
||||
@@ -277,7 +277,7 @@ impl View for AIFactView {
|
||||
ScrollbarWidth::Auto,
|
||||
appearance.theme().nonactive_ui_detail().into(),
|
||||
appearance.theme().active_ui_detail().into(),
|
||||
warpui::elements::Fill::None,
|
||||
galaxyui::elements::Fill::None,
|
||||
)
|
||||
.finish()
|
||||
}
|
||||
@@ -307,16 +307,16 @@ impl BackingView for AIFactView {
|
||||
fn handle_pane_header_overflow_menu_action(
|
||||
&mut self,
|
||||
_action: &Self::PaneHeaderOverflowMenuAction,
|
||||
_ctx: &mut warpui::ViewContext<Self>,
|
||||
_ctx: &mut galaxyui::ViewContext<Self>,
|
||||
) {
|
||||
self.handle_action(_action, _ctx)
|
||||
}
|
||||
|
||||
fn close(&mut self, ctx: &mut warpui::ViewContext<Self>) {
|
||||
fn close(&mut self, ctx: &mut galaxyui::ViewContext<Self>) {
|
||||
ctx.emit(AIFactViewEvent::Pane(PaneEvent::Close));
|
||||
}
|
||||
|
||||
fn focus_contents(&mut self, ctx: &mut warpui::ViewContext<Self>) {
|
||||
fn focus_contents(&mut self, ctx: &mut galaxyui::ViewContext<Self>) {
|
||||
self.focus(ctx);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@ use markdown_parser::{
|
||||
};
|
||||
use std::fmt::Debug;
|
||||
use std::path::PathBuf;
|
||||
use warp_core::ui::{
|
||||
use galaxy_core::ui::{
|
||||
appearance::{Appearance, AppearanceEvent},
|
||||
theme::color::internal_colors,
|
||||
};
|
||||
use warpui::elements::Shrinkable;
|
||||
use warpui::platform::FilePickerConfiguration;
|
||||
use warpui::ui_components::button::ButtonVariant;
|
||||
use warpui::{
|
||||
use galaxyui::elements::Shrinkable;
|
||||
use galaxyui::platform::FilePickerConfiguration;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Align, Border, ChildView, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment,
|
||||
Expanded, Flex, FormattedTextElement, HighlightedHyperlink, Hoverable, MainAxisAlignment,
|
||||
@@ -424,7 +424,7 @@ impl RuleView {
|
||||
.with_child(
|
||||
Container::new(
|
||||
ConstrainedBox::new(
|
||||
warpui::elements::Icon::new(
|
||||
galaxyui::elements::Icon::new(
|
||||
Icon::BookOpen.into(),
|
||||
appearance
|
||||
.theme()
|
||||
@@ -527,13 +527,13 @@ impl RuleView {
|
||||
if is_selected {
|
||||
container = container
|
||||
.with_background(appearance.theme().surface_2())
|
||||
.with_corner_radius(CornerRadius::with_all(warpui::elements::Radius::Pixels(
|
||||
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
|
||||
4.,
|
||||
)));
|
||||
} else if state.is_hovered() {
|
||||
container = container
|
||||
.with_background(appearance.theme().surface_1())
|
||||
.with_corner_radius(CornerRadius::with_all(warpui::elements::Radius::Pixels(
|
||||
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
|
||||
4.,
|
||||
)));
|
||||
}
|
||||
@@ -591,7 +591,7 @@ impl RuleView {
|
||||
Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::Info
|
||||
.to_warpui_icon(
|
||||
.to_galaxyui_icon(
|
||||
appearance
|
||||
.theme()
|
||||
.sub_text_color(appearance.theme().background()),
|
||||
@@ -609,7 +609,7 @@ impl RuleView {
|
||||
.finish(),
|
||||
)
|
||||
.with_background(appearance.theme().accent_overlay())
|
||||
.with_corner_radius(CornerRadius::with_all(warpui::elements::Radius::Pixels(4.)))
|
||||
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
|
||||
.with_uniform_padding(style::BANNER_PADDING)
|
||||
.with_margin_bottom(style::ITEM_BOTTOM_MARGIN)
|
||||
.finish()
|
||||
@@ -704,7 +704,7 @@ impl RuleView {
|
||||
Some(
|
||||
Container::new(row.finish())
|
||||
.with_background(internal_colors::neutral_1(appearance.theme()))
|
||||
.with_corner_radius(CornerRadius::with_all(warpui::elements::Radius::Pixels(4.)))
|
||||
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
|
||||
.with_border(
|
||||
Border::all(1.)
|
||||
.with_border_color(internal_colors::neutral_2(appearance.theme())),
|
||||
@@ -785,7 +785,7 @@ impl RuleView {
|
||||
|
||||
Container::new(row.finish())
|
||||
.with_background(bg_color)
|
||||
.with_corner_radius(CornerRadius::with_all(warpui::elements::Radius::Pixels(4.)))
|
||||
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
|
||||
.with_border(
|
||||
Border::all(1.)
|
||||
.with_border_color(internal_colors::neutral_2(appearance.theme())),
|
||||
|
||||
@@ -9,10 +9,10 @@ use crate::network::NetworkStatus;
|
||||
use crate::server::ids::SyncId;
|
||||
use crate::ui_components::buttons::icon_button;
|
||||
use crate::view_components::action_button::{ActionButton, DangerSecondaryTheme, PrimaryTheme};
|
||||
use warp_core::ui::{appearance::Appearance, theme::color::internal_colors};
|
||||
use warp_editor::editor::NavigationKey;
|
||||
use warpui::elements::{Clipped, ConstrainedBox};
|
||||
use warpui::{
|
||||
use galaxy_core::ui::{appearance::Appearance, theme::color::internal_colors};
|
||||
use galaxy_editor::editor::NavigationKey;
|
||||
use galaxyui::elements::{Clipped, ConstrainedBox};
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Border, ChildView, ClippedScrollStateHandle, ClippedScrollable, Container, CornerRadius,
|
||||
CrossAxisAlignment, Flex, MainAxisAlignment, MainAxisSize, MouseStateHandle, ParentElement,
|
||||
@@ -312,7 +312,7 @@ impl RuleEditorView {
|
||||
ScrollbarWidth::Auto,
|
||||
appearance.theme().nonactive_ui_detail().into(),
|
||||
appearance.theme().active_ui_detail().into(),
|
||||
warpui::elements::Fill::None,
|
||||
galaxyui::elements::Fill::None,
|
||||
)
|
||||
.finish(),
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use warp_core::ui::{appearance::Appearance, theme::color::internal_colors};
|
||||
use warpui::{
|
||||
use galaxy_core::ui::{appearance::Appearance, theme::color::internal_colors};
|
||||
use galaxyui::{
|
||||
elements::{CornerRadius, Radius},
|
||||
fonts::Weight,
|
||||
ui_components::components::{Coords, UiComponentStyles},
|
||||
|
||||
Reference in New Issue
Block a user