Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though

This commit is contained in:
Ryan Ward
2026-05-07 11:29:34 -05:00
parent f4e2475c60
commit a41cbd8cc7
2433 changed files with 14208 additions and 9409 deletions
+12 -12
View File
@@ -5,7 +5,7 @@ use parking_lot::FairMutex;
use pathfinder_color::ColorU;
use pathfinder_geometry::vector::vec2f;
use std::sync::Arc;
use warpui::{
use galaxyui::{
elements::{
Border, ChildAnchor, ChildView, ConstrainedBox, Container, CornerRadius,
CrossAxisAlignment, DropShadow, Empty, Expanded, Flex, Hoverable, MainAxisAlignment,
@@ -59,8 +59,8 @@ use crate::{
workspace::WorkspaceAction,
};
use warp_core::ui::theme::{color::internal_colors, Fill};
use warp_core::{
use galaxy_core::ui::theme::{color::internal_colors, Fill};
use galaxy_core::{
features::FeatureFlag,
ui::color::{coloru_with_opacity, Opacity},
};
@@ -82,7 +82,7 @@ const MAX_PROFILE_NAME_WIDTH_SCALE_FACTOR: f32 = 10.0;
const PROFILE_SELECTOR_POSITION_ID: &str = "profile_selector";
pub fn calculate_scaled_font_size(appearance: &warp_core::ui::appearance::Appearance) -> f32 {
pub fn calculate_scaled_font_size(appearance: &galaxy_core::ui::appearance::Appearance) -> f32 {
if FeatureFlag::AgentView.is_enabled() {
udi_font_size(appearance)
} else {
@@ -91,7 +91,7 @@ pub fn calculate_scaled_font_size(appearance: &warp_core::ui::appearance::Appear
}
/// Calculate the maximum width for profile name text (we will clip to this width)
pub fn calculate_max_profile_name_width(appearance: &warp_core::ui::appearance::Appearance) -> f32 {
pub fn calculate_max_profile_name_width(appearance: &galaxy_core::ui::appearance::Appearance) -> f32 {
let scaled_font_size = calculate_scaled_font_size(appearance);
scaled_font_size * MAX_PROFILE_NAME_WIDTH_SCALE_FACTOR
}
@@ -140,10 +140,10 @@ impl ActionButtonTheme for SelectorChipTheme {
}
}
fn font_properties(&self) -> Option<warpui::fonts::Properties> {
fn font_properties(&self) -> Option<galaxyui::fonts::Properties> {
if FeatureFlag::CloudModeInputV2.is_enabled() {
Some(warpui::fonts::Properties {
weight: warpui::fonts::Weight::Semibold,
Some(galaxyui::fonts::Properties {
weight: galaxyui::fonts::Weight::Semibold,
..Default::default()
})
} else {
@@ -432,7 +432,7 @@ impl ProfileModelSelector {
llm_preferences.hide_llm_popup(terminal_view_id);
} else if config.input_type.is_ai() {
ctx.spawn(
warpui::r#async::Timer::after(NEW_MODEL_CHOICES_POPUP_DELAY),
galaxyui::r#async::Timer::after(NEW_MODEL_CHOICES_POPUP_DELAY),
|_, _, ctx| {
ctx.notify();
},
@@ -1286,7 +1286,7 @@ impl ProfileModelSelector {
let (vertical_padding, horizontal_padding) = self.get_padding_values(scaled_font_size);
let profile_icon = Icon::Psychology
.to_warpui_icon(Fill::Solid(text_color))
.to_galaxyui_icon(Fill::Solid(text_color))
.finish();
let max_label_width = calculate_max_profile_name_width(appearance);
@@ -1417,7 +1417,7 @@ impl ProfileModelSelector {
let mut content = Flex::row().with_cross_axis_alignment(CrossAxisAlignment::Center);
if is_lrc {
let terminal_icon = Icon::Terminal
.to_warpui_icon(Fill::Solid(text_color))
.to_galaxyui_icon(Fill::Solid(text_color))
.finish();
content = content.with_child(
Container::new(
@@ -1438,7 +1438,7 @@ impl ProfileModelSelector {
// (when enabled, clicking opens the inline model selector instead of a dropdown).
if has_edit_access && !FeatureFlag::InlineMenuHeaders.is_enabled() {
let chevron_icon = Icon::ChevronDown
.to_warpui_icon(Fill::Solid(text_color))
.to_galaxyui_icon(Fill::Solid(text_color))
.finish();
content = content.with_child(