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,9 +1,9 @@
|
||||
use instant::Instant;
|
||||
use galaxyui::assets::asset_cache::AssetSource;
|
||||
use galaxyui::elements::{
|
||||
CacheOption, ConstrainedBox, CrossAxisAlignment, Flex, Image, ParentElement, Shrinkable, Stack,
|
||||
};
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use instant::Instant;
|
||||
|
||||
pub struct RootView {
|
||||
animation_start_time: Instant,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
Align, Border, ChildView, Container, CornerRadius, DispatchEventResult, EventHandler, Flex,
|
||||
ParentElement, Radius, Rect, Stack, Text,
|
||||
@@ -8,6 +7,7 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, ModelHandle, SingletonEntity, Tracked, TypedActionView, View,
|
||||
ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
pub fn init(ctx: &mut AppContext) {
|
||||
ctx.add_singleton_model(|_| Settings {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use galaxyui::{elements::Rect, AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::Rect;
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
pub struct BlurredView {}
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
use std::any::Any;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxyui::elements::{
|
||||
AcceptedByDropTarget, Align, ConstrainedBox, Container, DragAxis, Draggable, DraggableState,
|
||||
DropTarget, DropTargetData, ParentElement, Rect, Stack,
|
||||
};
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct RootView {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use galaxyui::{elements::Rect, AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::Rect;
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
pub struct RootView {}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
//! A UI sample demonstrating how the SelectableArea element can be used.
|
||||
|
||||
use markdown_parser::{parse_markdown, FormattedTextFragment, FormattedTextLine};
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
Align, ChildView, ConstrainedBox, Flex, FormattedTextElement, HeadingFontSizeMultipliers,
|
||||
@@ -12,6 +11,7 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity as _, TypedActionView, View, ViewContext,
|
||||
ViewHandle,
|
||||
};
|
||||
use markdown_parser::{parse_markdown, FormattedTextFragment, FormattedTextLine};
|
||||
|
||||
pub struct RootView {
|
||||
sub_view: ViewHandle<FormattedTextView>,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
use image::ImageEncoder;
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
Align, ConstrainedBox, Container, DispatchEventResult, EventHandler, Padding, ParentElement,
|
||||
Rect, Stack, Text,
|
||||
@@ -12,6 +10,8 @@ use galaxyui::platform::CapturedFrame;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity as _, TypedActionView, View, ViewContext,
|
||||
};
|
||||
use image::ImageEncoder;
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum RootViewAction {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
CacheOption, ConstrainedBox, Flex, Icon, Image, MainAxisAlignment, MainAxisSize, ParentElement,
|
||||
Rect, Stack,
|
||||
};
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
pub struct RootView {}
|
||||
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
use galaxyui::elements::new_scrollable::AxisConfiguration;
|
||||
use galaxyui::elements::new_scrollable::ClippedAxisConfiguration;
|
||||
use galaxyui::elements::new_scrollable::DualAxisConfig;
|
||||
use galaxyui::elements::new_scrollable::NewScrollableElement;
|
||||
use galaxyui::elements::new_scrollable::ScrollableAppearance;
|
||||
use galaxyui::elements::new_scrollable::ScrollableAxis;
|
||||
use galaxyui::elements::Axis;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::new_scrollable::{
|
||||
AxisConfiguration, ClippedAxisConfiguration, DualAxisConfig, NewScrollableElement,
|
||||
@@ -19,6 +10,8 @@ use galaxyui::elements::{
|
||||
use galaxyui::keymap::FixedBinding;
|
||||
use galaxyui::units::Pixels;
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View, ViewContext, ViewHandle};
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
|
||||
pub fn init(ctx: &mut AppContext) {
|
||||
use galaxyui::keymap::macros::*;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
pub mod root_view;
|
||||
|
||||
extern crate galaxyui;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
pub mod root_view;
|
||||
|
||||
extern crate galaxyui;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
Align, ConstrainedBox, Container, CornerRadius, DropShadow, Flex, ParentElement, Radius, Rect,
|
||||
Shrinkable,
|
||||
};
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
pub struct RootView;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
pub mod root_view;
|
||||
|
||||
extern crate galaxyui;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::{Align, Container};
|
||||
use galaxyui::presenter::ChildView;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::ui_components::slider::{Slider, SliderStateHandle};
|
||||
use galaxyui::{AppContext, Element, Entity, TypedActionView, View, ViewContext, ViewHandle};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
/// Renders a center-aligned slider component against a black background. When the slider is
|
||||
/// dragged, the updated value is printed to stdout.
|
||||
|
||||
@@ -5,10 +5,9 @@ use pathfinder_geometry::vector::vec2f;
|
||||
pub mod root_view;
|
||||
|
||||
extern crate galaxyui;
|
||||
use galaxyui::{platform, platform::WindowBounds, AssetProvider};
|
||||
use rust_embed::RustEmbed;
|
||||
use galaxyui::platform::WindowBounds;
|
||||
use galaxyui::{platform, AssetProvider};
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(Clone, Copy, RustEmbed)]
|
||||
#[folder = "examples/assets"]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use image::ImageEncoder;
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
ClippedScrollStateHandle, ClippedScrollable, ConstrainedBox, Container, Empty, Fill, Flex,
|
||||
@@ -16,6 +15,7 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity as _, TypedActionView, View, ViewContext,
|
||||
ViewHandle, WindowId,
|
||||
};
|
||||
use image::ImageEncoder;
|
||||
|
||||
use crate::CaptureConfig;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxyui::elements::{Align, ConstrainedBox, ParentElement, Rect, Stack, Text};
|
||||
use galaxyui::fonts::FamilyId;
|
||||
use galaxyui::keymap::FixedBinding;
|
||||
@@ -7,6 +6,7 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity as _, TypedActionView, View, ViewContext,
|
||||
ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
// We could initiate global action and bindings here.
|
||||
pub fn init(ctx: &mut AppContext) {
|
||||
|
||||
Reference in New Issue
Block a user