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
+17 -17
View File
@@ -2,18 +2,18 @@ use super::two_line_button::{render_two_line_button, TwoLineButtonSpec};
use crate::model::{OnboardingAuthState, OnboardingStateEvent, OnboardingStateModel};
use crate::slides::{bottom_nav, layout, slide_content};
use crate::telemetry::OnboardingEvent;
use warp_core::send_telemetry_from_ctx;
use galaxy_core::send_telemetry_from_ctx;
use super::OnboardingSlide;
use crate::visuals::agent_visual;
use pathfinder_geometry::vector::vec2f;
use ui_components::{button, Component as _, Options as _};
use warp_core::features::FeatureFlag;
use warp_core::ui::{
use galaxy_core::features::FeatureFlag;
use galaxy_core::ui::{
appearance::Appearance,
theme::{color::internal_colors, Fill},
};
use warpui::{
use galaxyui::{
elements::{
AnchorPair, Border, ClippedScrollStateHandle, ClippedScrollable, ConstrainedBox, Container,
CornerRadius, CrossAxisAlignment, Dismiss, Empty, Flex, FormattedTextElement, Hoverable,
@@ -35,7 +35,7 @@ use warpui::{
use ai::LLMId;
use pathfinder_color::ColorU;
use ui_components::button::State as ButtonState;
use warp_core::ui::icons::Icon;
use galaxy_core::ui::icons::Icon;
/// high-contrast "inverted" fill (foreground color)
struct UpgradeButtonTheme;
@@ -45,8 +45,8 @@ impl button::Theme for UpgradeButtonTheme {
&self,
button_state: ButtonState,
appearance: &Appearance,
) -> Option<warp_core::ui::theme::Fill> {
use warp_core::ui::color::blend::Blend;
) -> Option<galaxy_core::ui::theme::Fill> {
use galaxy_core::ui::color::blend::Blend;
let theme = appearance.theme();
let base = theme.foreground();
match button_state {
@@ -60,7 +60,7 @@ impl button::Theme for UpgradeButtonTheme {
fn text_color(
&self,
background: Option<warp_core::ui::theme::Fill>,
background: Option<galaxy_core::ui::theme::Fill>,
appearance: &Appearance,
) -> ColorU {
let bg = background
@@ -152,7 +152,7 @@ pub enum AgentSlideEvent {
}
pub struct AgentSlide {
onboarding_state: warpui::ModelHandle<OnboardingStateModel>,
onboarding_state: galaxyui::ModelHandle<OnboardingStateModel>,
/// Mouse state handles for each model row.
model_mouse_states: Vec<MouseStateHandle>,
@@ -201,7 +201,7 @@ fn sorted_models(models: &[OnboardingModelInfo]) -> Vec<OnboardingModelInfo> {
impl AgentSlide {
pub(crate) fn new(
onboarding_state: warpui::ModelHandle<OnboardingStateModel>,
onboarding_state: galaxyui::ModelHandle<OnboardingStateModel>,
ctx: &mut ViewContext<Self>,
) -> Self {
let model_count = onboarding_state.as_ref(ctx).models().len();
@@ -234,7 +234,7 @@ impl AgentSlide {
me.show_plan_activated_toast = true;
// Auto-dismiss after the configured duration.
let _ = ctx.spawn(
warpui::r#async::Timer::after(PLAN_ACTIVATED_TOAST_DURATION),
galaxyui::r#async::Timer::after(PLAN_ACTIVATED_TOAST_DURATION),
|me: &mut Self, _, ctx| {
if me.show_plan_activated_toast {
me.show_plan_activated_toast = false;
@@ -541,7 +541,7 @@ impl AgentSlide {
let title_row: Box<dyn Element> = if let Some(icon) = icon {
const ICON_SIZE: f32 = 14.;
let icon_el =
ConstrainedBox::new(Box::new(icon.to_warpui_icon(title_color.into())))
ConstrainedBox::new(Box::new(icon.to_galaxyui_icon(title_color.into())))
.with_width(ICON_SIZE)
.with_height(ICON_SIZE)
.finish();
@@ -720,7 +720,7 @@ impl AgentSlide {
.finish();
const ICON_SIZE: f32 = 14.;
let icon_el = ConstrainedBox::new(Box::new(icon.to_warpui_icon(title_color.into())))
let icon_el = ConstrainedBox::new(Box::new(icon.to_galaxyui_icon(title_color.into())))
.with_width(ICON_SIZE)
.with_height(ICON_SIZE)
.finish();
@@ -1003,7 +1003,7 @@ impl AgentSlide {
);
let step_index = 2;
let step_count = if warp_core::features::FeatureFlag::OpenWarpNewSettingsModes.is_enabled()
let step_count = if galaxy_core::features::FeatureFlag::OpenWarpNewSettingsModes.is_enabled()
{
5
} else {
@@ -1165,7 +1165,7 @@ impl AgentSlide {
};
let icon = ConstrainedBox::new(Box::new(
Icon::AlertCircle.to_warpui_icon(Fill::Solid(text_color)),
Icon::AlertCircle.to_galaxyui_icon(Fill::Solid(text_color)),
))
.with_width(ICON_SIZE)
.with_height(ICON_SIZE)
@@ -1263,7 +1263,7 @@ impl AgentSlide {
let ui_builder = appearance.ui_builder();
let check_icon = ConstrainedBox::new(Box::new(
Icon::CheckSkinny.to_warpui_icon(Fill::Solid(text_color)),
Icon::CheckSkinny.to_galaxyui_icon(Fill::Solid(text_color)),
))
.with_width(ICON_SIZE)
.with_height(ICON_SIZE)
@@ -1362,7 +1362,7 @@ impl View for AgentSlide {
let mut stack = Stack::new();
stack.add_child(slide);
stack.add_child(
warpui::elements::Align::new(bottom_overlay)
galaxyui::elements::Align::new(bottom_overlay)
.bottom_center()
.finish(),
);