Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -50,15 +50,15 @@ use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use teams_page::{TeamsPageView, TeamsPageViewEvent};
|
||||
use warp_core::send_telemetry_from_ctx;
|
||||
use warp_core::{
|
||||
use galaxy_core::send_telemetry_from_ctx;
|
||||
use galaxy_core::{
|
||||
channel::ChannelState, context_flag::ContextFlag, features::FeatureFlag,
|
||||
settings::ToggleableSetting as _, ui::theme::color::internal_colors,
|
||||
};
|
||||
use warp_editor::editor::NavigationKey;
|
||||
use galaxy_editor::editor::NavigationKey;
|
||||
use warpify_page::{WarpifyPageAction, WarpifyPageView};
|
||||
use warpui::Element;
|
||||
use warpui::{
|
||||
use galaxyui::Element;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Align, Border, ChildAnchor, ChildView, Clipped, ClippedScrollStateHandle,
|
||||
ClippedScrollable, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment,
|
||||
@@ -235,8 +235,8 @@ impl Display for SettingsSection {
|
||||
SettingsSection::Keybindings => write!(f, "Keyboard shortcuts"),
|
||||
SettingsSection::SharedBlocks => write!(f, "Shared blocks"),
|
||||
SettingsSection::MCPServers => write!(f, "MCP Servers"),
|
||||
SettingsSection::WarpDrive => write!(f, "Warp Drive"),
|
||||
SettingsSection::WarpAgent => write!(f, "Warp Agent"),
|
||||
SettingsSection::WarpDrive => write!(f, "Galaxy Drive"),
|
||||
SettingsSection::WarpAgent => write!(f, "Galaxy Agent"),
|
||||
SettingsSection::AgentProfiles => write!(f, "Profiles"),
|
||||
SettingsSection::AgentMCPServers => write!(f, "MCP servers"),
|
||||
SettingsSection::Knowledge => write!(f, "Knowledge"),
|
||||
@@ -338,9 +338,9 @@ impl FromStr for SettingsSection {
|
||||
"Shared blocks" => Ok(Self::SharedBlocks),
|
||||
"Teams" => Ok(Self::Teams),
|
||||
"Warpify" => Ok(Self::Warpify),
|
||||
"WarpDrive" | "Warp Drive" => Ok(Self::WarpDrive),
|
||||
"WarpDrive" | "Warp Drive" | "Galaxy Drive" => Ok(Self::WarpDrive),
|
||||
// This page was called "Oz" at one point, keep for backward compatibility.
|
||||
"Oz" | "Warp Agent" => Ok(Self::WarpAgent),
|
||||
"Oz" | "Warp Agent" | "Galaxy Agent" => Ok(Self::WarpAgent),
|
||||
"Profiles" | "AgentProfiles" => Ok(Self::AgentProfiles),
|
||||
"MCP servers" | "AgentMCPServers" => Ok(Self::AgentMCPServers),
|
||||
"Knowledge" => Ok(Self::Knowledge),
|
||||
@@ -662,7 +662,7 @@ impl<T: Action + Clone> ToggleSettingActionPair<T> {
|
||||
context_prefix: &ContextPredicate,
|
||||
context_boolean_flag: &'static str,
|
||||
) -> Self {
|
||||
use warpui::keymap::macros::id;
|
||||
use galaxyui::keymap::macros::id;
|
||||
|
||||
ToggleSettingActionPair {
|
||||
descriptions: SettingActionPairDescriptions {
|
||||
@@ -2198,7 +2198,7 @@ impl SettingsView {
|
||||
Container::new(
|
||||
ConstrainedBox::new(
|
||||
icons::Icon::SearchSmall
|
||||
.to_warpui_icon(appearance.theme().active_ui_text_color())
|
||||
.to_galaxyui_icon(appearance.theme().active_ui_text_color())
|
||||
.finish(),
|
||||
)
|
||||
.with_width(16.)
|
||||
@@ -2641,16 +2641,16 @@ impl BackingView for SettingsView {
|
||||
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(SettingsViewEvent::Pane(PaneEvent::Close));
|
||||
}
|
||||
|
||||
fn focus_contents(&mut self, ctx: &mut warpui::ViewContext<Self>) {
|
||||
fn focus_contents(&mut self, ctx: &mut galaxyui::ViewContext<Self>) {
|
||||
ctx.focus(&self.search_editor)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user