Wrapping up bedrock implementation
This commit is contained in:
@@ -9,8 +9,8 @@ use galaxyui::{
|
||||
use super::red_notification_dot::RedNotificationDot;
|
||||
use galaxy_core::ui::{external_product_icon::ExternalProductIcon, icons::Icon};
|
||||
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxyui::elements::{ChildAnchor, OffsetPositioning, ParentAnchor, ParentOffsetBounds, Stack};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
pub enum AvatarContent {
|
||||
/// Rendered as capital initial of the given display name.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::fmt::Debug;
|
||||
|
||||
use itertools::{Itertools, Position};
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
CrossAxisAlignment, Flex, Hoverable, MainAxisSize, MouseStateHandle, ParentElement,
|
||||
@@ -9,6 +8,7 @@ use galaxyui::{
|
||||
ui_components::components::{UiComponent, UiComponentStyles},
|
||||
AppContext, Element, EventContext,
|
||||
};
|
||||
use itertools::{Itertools, Position};
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use ui_components::tooltip::{Params as TooltipParams, Tooltip as TooltipComponent};
|
||||
use ui_components::{Component as _, Options as ComponentOptions};
|
||||
use galaxy_core::ui::theme::{AnsiColorIdentifier, Fill as ThemeFill};
|
||||
use galaxyui::elements::{
|
||||
Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, Element, Hoverable,
|
||||
@@ -9,6 +5,10 @@ use galaxyui::elements::{
|
||||
Stack,
|
||||
};
|
||||
use galaxyui::platform::Cursor;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use ui_components::tooltip::{Params as TooltipParams, Tooltip as TooltipComponent};
|
||||
use ui_components::{Component as _, Options as ComponentOptions};
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::ui_components::icons::Icon;
|
||||
@@ -40,7 +40,11 @@ pub(crate) fn render_color_dot(
|
||||
) -> Hoverable {
|
||||
Hoverable::new(mouse_state, move |state| {
|
||||
let overlay: Option<Box<dyn Element>> = if is_no_color {
|
||||
Some(Icon::SlashCircle.to_galaxyui_icon(foreground_color).finish())
|
||||
Some(
|
||||
Icon::SlashCircle
|
||||
.to_galaxyui_icon(foreground_color)
|
||||
.finish(),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
@@ -35,7 +35,9 @@ pub fn dialog_styles(appearance: &Appearance) -> UiComponentStyles {
|
||||
font_weight: Some(galaxyui::fonts::Weight::Bold),
|
||||
background: Some(background.into()),
|
||||
border_color: Some(theme.surface_3().into()),
|
||||
border_radius: Some(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(8.))),
|
||||
border_radius: Some(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
|
||||
8.,
|
||||
))),
|
||||
border_width: Some(1.),
|
||||
..Default::default()
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::icons::Icon as WarpIcon;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_core::ui::theme::{Fill as WarpThemeFill, WarpTheme};
|
||||
@@ -7,6 +5,8 @@ use galaxyui::elements::{
|
||||
ChildAnchor, ConstrainedBox, Container, CornerRadius, Element, OffsetPositioning, ParentAnchor,
|
||||
ParentElement, ParentOffsetBounds, Radius, Stack,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use crate::ai::agent::conversation::ConversationStatus;
|
||||
use crate::terminal::CLIAgent;
|
||||
@@ -157,10 +157,11 @@ fn render_with_optional_status_badge(
|
||||
return circle;
|
||||
};
|
||||
let (icon, color) = status.status_icon_and_color(theme);
|
||||
let badge_icon = ConstrainedBox::new(icon.to_galaxyui_icon(WarpThemeFill::Solid(color)).finish())
|
||||
.with_width(sizing.badge_icon_size)
|
||||
.with_height(sizing.badge_icon_size)
|
||||
.finish();
|
||||
let badge_icon =
|
||||
ConstrainedBox::new(icon.to_galaxyui_icon(WarpThemeFill::Solid(color)).finish())
|
||||
.with_width(sizing.badge_icon_size)
|
||||
.with_height(sizing.badge_icon_size)
|
||||
.finish();
|
||||
let badge = Container::new(badge_icon)
|
||||
.with_uniform_padding(sizing.badge_padding)
|
||||
.with_corner_radius(CornerRadius::with_all(Radius::Percentage(50.)))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use crate::ui_components::blended_colors;
|
||||
use crate::{appearance::Appearance, ui_components::icons::Icon};
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{CornerRadius, MouseState, Radius};
|
||||
use galaxyui::Element;
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
/// Shared item highlight state for left-panel style lists (file tree, global search results,
|
||||
/// warp drive rows, etc.).
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use crate::appearance::Appearance;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxyui::elements::{
|
||||
ChildAnchor, ChildView, MouseStateHandle, OffsetPositioning, ParentAnchor, ParentElement,
|
||||
ParentOffsetBounds, Stack,
|
||||
@@ -7,6 +6,7 @@ use galaxyui::elements::{
|
||||
use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, EventContext, View, ViewHandle};
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
|
||||
use super::buttons::{highlight, icon_button};
|
||||
use super::icons::Icon;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use crate::appearance::Appearance;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::theme::AnsiColorIdentifier;
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
@@ -9,6 +8,7 @@ use galaxyui::{
|
||||
ui_components::components::UiComponentStyles,
|
||||
Element,
|
||||
};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
pub struct RedNotificationDot {}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
//! - Responsive layout that adapts to different highlight states
|
||||
|
||||
use fuzzy_match::FuzzyMatchResult;
|
||||
use std::path::Path;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{
|
||||
Container, CrossAxisAlignment, Flex, Highlight, MainAxisSize, ParentElement, Shrinkable, Text,
|
||||
@@ -20,6 +19,7 @@ use galaxyui::elements::{
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::text_layout::ClipConfig;
|
||||
use galaxyui::{AppContext, Element};
|
||||
use std::path::Path;
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::search::ai_context_menu::safe_truncate;
|
||||
|
||||
Reference in New Issue
Block a user