Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+20 -14
View File
@@ -22,11 +22,6 @@ use crate::view_components::{
use crate::workspace::ToastStack;
use crate::workspaces::user_workspaces::UserWorkspaces;
use ai::project_context::model::{ProjectContextModel, ProjectContextModelEvent};
use markdown_parser::{
weight::CustomWeight, FormattedText, FormattedTextFragment, FormattedTextLine,
};
use std::fmt::Debug;
use std::path::PathBuf;
use galaxy_core::ui::{
appearance::{Appearance, AppearanceEvent},
theme::color::internal_colors,
@@ -45,6 +40,11 @@ use galaxyui::{
AppContext, Element, Entity, FocusContext, SingletonEntity, TypedActionView, View, ViewContext,
ViewHandle,
};
use markdown_parser::{
weight::CustomWeight, FormattedText, FormattedTextFragment, FormattedTextLine,
};
use std::fmt::Debug;
use std::path::PathBuf;
use super::{is_edit_allowed, is_syncing, style, AIFact, CloudAIFact, CloudAIFactModel};
use crate::ai::facts::AIMemory;
@@ -527,15 +527,15 @@ impl RuleView {
if is_selected {
container = container
.with_background(appearance.theme().surface_2())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)));
.with_corner_radius(CornerRadius::with_all(
galaxyui::elements::Radius::Pixels(4.),
));
} else if state.is_hovered() {
container = container
.with_background(appearance.theme().surface_1())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)));
.with_corner_radius(CornerRadius::with_all(
galaxyui::elements::Radius::Pixels(4.),
));
}
container.finish()
@@ -609,7 +609,9 @@ impl RuleView {
.finish(),
)
.with_background(appearance.theme().accent_overlay())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_uniform_padding(style::BANNER_PADDING)
.with_margin_bottom(style::ITEM_BOTTOM_MARGIN)
.finish()
@@ -704,7 +706,9 @@ impl RuleView {
Some(
Container::new(row.finish())
.with_background(internal_colors::neutral_1(appearance.theme()))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_border(
Border::all(1.)
.with_border_color(internal_colors::neutral_2(appearance.theme())),
@@ -785,7 +789,9 @@ impl RuleView {
Container::new(row.finish())
.with_background(bg_color)
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_border(
Border::all(1.)
.with_border_color(internal_colors::neutral_2(appearance.theme())),