Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/agent_ui/src/conversation_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use gpui::{
ElementId, Empty, Entity, EventEmitter, FocusHandle, Focusable, Hsla, ListOffset, ListState,
ObjectFit, PlatformDisplay, ScrollHandle, SharedString, StyledText, Subscription, Task,
TaskExt, TextRun, TextStyle, WeakEntity, Window, WindowHandle, div, ease_in_out, img,
linear_color_stop, linear_gradient, list, point, pulsating_between,
linear_color_stop, linear_gradient, list, pulsating_between,
};
use language::{Buffer, Language, Rope};
use language_model::{LanguageModelCompletionError, LanguageModelRegistry};
Expand Down Expand Up @@ -3428,7 +3428,7 @@ pub(crate) mod tests {
use editor::MultiBufferOffset;
use editor::actions::Paste;
use fs::FakeFs;
use gpui::{ClipboardItem, EventEmitter, TestAppContext, VisualTestContext, size};
use gpui::{ClipboardItem, EventEmitter, TestAppContext, VisualTestContext, point, size};
use parking_lot::Mutex;
use project::Project;
use serde_json::json;
Expand Down
11 changes: 4 additions & 7 deletions crates/agent_ui/src/conversation_view/thread_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2853,13 +2853,10 @@ impl ThreadView {
.border_color(cx.theme().colors().border)
.rounded_t_md()
.when(opaque_window, |this| {
this.shadow(vec![gpui::BoxShadow {
color: gpui::black().opacity(0.12),
offset: point(px(1.), px(-1.)),
blur_radius: px(2.),
spread_radius: px(0.),
inset: false,
}])
this.shadow(vec![
gpui::BoxShadow::new(px(1.), px(-1.), gpui::black().opacity(0.12))
.blur_radius(px(2.)),
])
})
.when_some(awaiting_permission, |this, element| this.child(element))
.when(
Expand Down
12 changes: 4 additions & 8 deletions crates/ai_onboarding/src/agent_api_keys_onboarding.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use gpui::{Action, IntoElement, ParentElement, RenderOnce, point};
use gpui::{Action, IntoElement, ParentElement, RenderOnce};
use language_model::{IconOrSvg, LanguageModelRegistry, ZED_CLOUD_PROVIDER_ID};
use ui::{Divider, List, ListBulletItem, prelude::*};

Expand Down Expand Up @@ -68,13 +68,9 @@ impl Render for ApiKeysWithProviders {
.border_x_1()
.border_color(cx.theme().colors().border.opacity(0.5))
.bg(cx.theme().colors().background.alpha(0.5))
.shadow(vec![gpui::BoxShadow {
color: gpui::black().opacity(0.15),
offset: point(px(1.), px(-1.)),
blur_radius: px(3.),
spread_radius: px(0.),
inset: false,
}])
.shadow(vec![
gpui::BoxShadow::new(px(1.), px(-1.), gpui::black().opacity(0.15)).blur_radius(px(3.)),
])
.child(
h_flex()
.px_2p5()
Expand Down
11 changes: 4 additions & 7 deletions crates/editor/src/edit_prediction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2017,13 +2017,10 @@ impl Editor {
.gap_1()
// Workaround: For some reason, there's a gap if we don't do this
.ml(-BORDER_WIDTH)
.shadow(vec![gpui::BoxShadow {
color: gpui::black().opacity(0.05),
offset: point(px(1.), px(1.)),
blur_radius: px(2.),
spread_radius: px(0.),
inset: false,
}])
.shadow(vec![
gpui::BoxShadow::new(px(1.), px(1.), gpui::black().opacity(0.05))
.blur_radius(px(2.)),
])
.bg(Editor::edit_prediction_line_popover_bg_color(cx))
.border(BORDER_WIDTH)
.border_color(cx.theme().colors().border)
Expand Down
14 changes: 6 additions & 8 deletions crates/gpui/examples/opacity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{fs, path::PathBuf};
use anyhow::Result;
use gpui::{
App, AssetSource, Bounds, BoxShadow, ClickEvent, Context, SharedString, Task, Window,
WindowBounds, WindowOptions, div, hsla, img, point, prelude::*, px, rgb, size, svg,
WindowBounds, WindowOptions, div, hsla, img, prelude::*, px, rgb, size, svg,
};
use gpui_platform::application;

Expand Down Expand Up @@ -114,13 +114,11 @@ impl Render for HelloWorld {
.bg(gpui::blue())
.border_3()
.border_color(gpui::black())
.shadow(vec![BoxShadow {
color: hsla(0.0, 0.0, 0.0, 0.5),
blur_radius: px(1.0),
spread_radius: px(5.0),
offset: point(px(10.0), px(10.0)),
inset: false,
}])
.shadow(vec![
BoxShadow::new(px(10.0), px(10.0), hsla(0.0, 0.0, 0.0, 0.5))
.blur_radius(px(1.0))
.spread_radius(px(5.0)),
])
.child(img("image/app-icon.png").size_8())
.child("Opacity Panel (Click to test)")
.child(
Expand Down
Loading
Loading