Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::color::blend::Blend;
|
||||
use galaxy_core::ui::color::{coloru_with_opacity, OPAQUE};
|
||||
use galaxy_core::ui::theme::color::CustomDetails;
|
||||
use galaxy_core::ui::theme::{
|
||||
AnsiColor, AnsiColors, Details, Fill, HorizontalGradient, Image, TerminalColors,
|
||||
VerticalGradient, WarpTheme,
|
||||
AnsiColor, AnsiColors, Details, Fill, GalaxyTheme, HorizontalGradient, Image, TerminalColors,
|
||||
VerticalGradient,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
const DARK_MODE_NORMAL_COLORS: AnsiColors = AnsiColors::new(
|
||||
AnsiColor::from_u32(0x616161FF),
|
||||
|
||||
@@ -3,7 +3,6 @@ use std::iter::FromIterator;
|
||||
use std::path::{Component, Path, PathBuf};
|
||||
|
||||
use anyhow::Result;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
pub use galaxy_core::ui::color::blend::Blend;
|
||||
use galaxy_core::ui::color::pick_foreground_color;
|
||||
pub use galaxy_core::ui::theme::*;
|
||||
@@ -14,6 +13,7 @@ use galaxyui::elements::{
|
||||
Shrinkable, Stack, Text,
|
||||
};
|
||||
use galaxyui::fonts::FamilyId;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
use super::default_themes::*;
|
||||
use super::theme_creator::{pick_accent_color_from_options, top_colors_for_image};
|
||||
@@ -468,6 +468,8 @@ pub struct GalaxyThemeConfig {
|
||||
theme_map: HashMap<ThemeKind, GalaxyTheme>,
|
||||
}
|
||||
|
||||
pub type WarpThemeConfig = GalaxyThemeConfig;
|
||||
|
||||
impl GalaxyThemeConfig {
|
||||
pub fn new() -> Self {
|
||||
// preload with built-in themes
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use settings::Setting as _;
|
||||
use galaxy_editor::editor::NavigationKey;
|
||||
use galaxyui::accessibility::{AccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::elements::{
|
||||
Align, ChildAnchor, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment,
|
||||
DispatchEventResult, Element, Empty, EventHandler, Fill, Flex, Hoverable, Icon,
|
||||
@@ -19,6 +17,8 @@ use galaxyui::{
|
||||
AppContext, Entity, FocusContext, ModelHandle, SingletonEntity, Tracked, TypedActionView,
|
||||
UpdateModel, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use settings::Setting as _;
|
||||
|
||||
use super::theme;
|
||||
use crate::appearance::{Appearance, AppearanceManager};
|
||||
@@ -33,12 +33,12 @@ use crate::resource_center::{
|
||||
use crate::server::telemetry::TelemetryEvent;
|
||||
use crate::settings::{respect_system_theme, ThemeSettings};
|
||||
use crate::themes::theme::{
|
||||
RespectSystemTheme, SelectedSystemThemes, ThemeKind, WarpTheme, WarpThemeConfig,
|
||||
GalaxyTheme, GalaxyThemeConfig, RespectSystemTheme, SelectedSystemThemes, ThemeKind,
|
||||
};
|
||||
use crate::ui_components::buttons::{close_button, icon_button};
|
||||
use crate::ui_components::icons;
|
||||
use crate::ui_components::window_focus_dimming::WindowFocusDimming;
|
||||
use crate::user_config::{load_theme_configs, themes_dir, WarpConfig, WarpConfigUpdateEvent};
|
||||
use crate::user_config::{load_theme_configs, themes_dir, GalaxyConfig, GalaxyConfigUpdateEvent};
|
||||
use crate::util::traffic_lights::{traffic_light_data, TrafficLightData, TrafficLightSide};
|
||||
use crate::window_settings::WindowSettings;
|
||||
use crate::workspace::PANEL_HEADER_HEIGHT;
|
||||
|
||||
@@ -4,10 +4,8 @@ use std::path::PathBuf;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use std::{fs::copy, io::Write};
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use galaxy_core::ui::theme::WarpTheme;
|
||||
use galaxy_core::ui::theme::GalaxyTheme;
|
||||
use galaxyui::elements::{
|
||||
Border, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, DispatchEventResult,
|
||||
EventHandler, Fill, Flex, Icon, MainAxisAlignment, MainAxisSize, MouseStateHandle,
|
||||
@@ -21,6 +19,8 @@ use galaxyui::ui_components::text_input::TextInput;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use crate::appearance::{Appearance, AppearanceManager};
|
||||
use crate::editor::{EditorView, Event as EditorEvent};
|
||||
|
||||
@@ -16,7 +16,7 @@ use galaxyui::{AppContext, Element, Entity, SingletonEntity, TypedActionView, Vi
|
||||
use crate::appearance::Appearance;
|
||||
use crate::server::telemetry::TelemetryEvent;
|
||||
use crate::settings::{active_theme_kind, ThemeSettings};
|
||||
use crate::themes::theme::{ThemeKind, WarpTheme};
|
||||
use crate::themes::theme::{GalaxyTheme, ThemeKind};
|
||||
use crate::user_config::util::from_yaml;
|
||||
use crate::{send_telemetry_from_ctx, user_config};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user