Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -8,18 +8,18 @@ use crate::Appearance;
|
||||
use crate::TemplatableMCPServerManager;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use uuid::Uuid;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warpui::elements::Hoverable;
|
||||
use warpui::elements::MouseStateHandle;
|
||||
use warpui::elements::{
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui::elements::Hoverable;
|
||||
use galaxyui::elements::MouseStateHandle;
|
||||
use galaxyui::elements::{
|
||||
ChildAnchor, ChildView, ConstrainedBox, Container, CrossAxisAlignment, Flex, MainAxisAlignment,
|
||||
MainAxisSize, OffsetPositioning, ParentAnchor, ParentElement, ParentOffsetBounds, Shrinkable,
|
||||
Stack, Text,
|
||||
};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::ui_components::components::UiComponent;
|
||||
use warpui::AppContext;
|
||||
use warpui::{Element, SingletonEntity, ViewHandle};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::AppContext;
|
||||
use galaxyui::{Element, SingletonEntity, ViewHandle};
|
||||
|
||||
use super::ExecutionProfileEditorView;
|
||||
use super::ExecutionProfileEditorViewAction;
|
||||
@@ -136,7 +136,7 @@ fn render_info_section(
|
||||
let alert_icon = Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::AlertCircle
|
||||
.to_warpui_icon(
|
||||
.to_galaxyui_icon(
|
||||
appearance
|
||||
.theme()
|
||||
.sub_text_color(appearance.theme().surface_2()),
|
||||
@@ -173,7 +173,7 @@ fn render_permission_row<T: Clone + 'static + std::fmt::Debug + Send + Sync>(
|
||||
) -> Box<dyn Element> {
|
||||
let icon_elem = Container::new(
|
||||
ConstrainedBox::new(
|
||||
icon.to_warpui_icon(appearance.theme().active_ui_text_color())
|
||||
icon.to_galaxyui_icon(appearance.theme().active_ui_text_color())
|
||||
.finish(),
|
||||
)
|
||||
.with_width(16.)
|
||||
@@ -247,7 +247,7 @@ pub fn render_permissions_section(
|
||||
appearance: &Appearance,
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
let mut column = Flex::column().with_children([
|
||||
@@ -505,7 +505,7 @@ fn render_directory_allowlist_section(
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
appearance: &Appearance,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
let is_editable = ai_settings.is_directory_allowlist_editable(app);
|
||||
@@ -530,7 +530,7 @@ fn render_command_allowlist_section(
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
appearance: &Appearance,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
let is_editable = ai_settings.is_command_allowlist_editable(app);
|
||||
@@ -556,7 +556,7 @@ fn render_command_denylist_section(
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
appearance: &Appearance,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
let is_editable = ai_settings.is_command_denylist_editable(app);
|
||||
@@ -588,7 +588,7 @@ fn display_mcp_name(uuid: &Uuid, app: &AppContext) -> String {
|
||||
fn render_mcp_allowlist_section(
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
appearance: &Appearance,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
@@ -614,7 +614,7 @@ fn render_mcp_allowlist_section(
|
||||
fn render_mcp_denylist_section(
|
||||
view: &ExecutionProfileEditorView,
|
||||
profile_data: &AIExecutionProfile,
|
||||
app: &warpui::AppContext,
|
||||
app: &galaxyui::AppContext,
|
||||
appearance: &Appearance,
|
||||
) -> Box<dyn Element> {
|
||||
let ai_settings = AISettings::as_ref(app);
|
||||
@@ -645,7 +645,7 @@ pub fn render_plan_auto_sync_toggle(
|
||||
let icon_elem = Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::Compass
|
||||
.to_warpui_icon(appearance.theme().active_ui_text_color())
|
||||
.to_galaxyui_icon(appearance.theme().active_ui_text_color())
|
||||
.finish(),
|
||||
)
|
||||
.with_width(icon_size)
|
||||
@@ -719,7 +719,7 @@ pub fn render_web_search_toggle(
|
||||
let icon_elem = Container::new(
|
||||
ConstrainedBox::new(
|
||||
Icon::Globe
|
||||
.to_warpui_icon(appearance.theme().active_ui_text_color())
|
||||
.to_galaxyui_icon(appearance.theme().active_ui_text_color())
|
||||
.finish(),
|
||||
)
|
||||
.with_width(icon_size)
|
||||
|
||||
Reference in New Issue
Block a user