From 41d2b9808bd91b063b93ee809468c45f9aa965cb Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Fri, 21 Nov 2025 10:53:14 +0800 Subject: [PATCH] color_picker: Add radius on focus border (#1652) | Before | After | | - | - | | SCR-20251121-jwmj | SCR-20251121-jvol | --- crates/ui/src/color_picker.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui/src/color_picker.rs b/crates/ui/src/color_picker.rs index 5d863505..9634dbb4 100644 --- a/crates/ui/src/color_picker.rs +++ b/crates/ui/src/color_picker.rs @@ -398,6 +398,7 @@ impl RenderOnce for ColorPicker { .items_center() .input_text_size(self.size) .line_height(relative(1.)) + .rounded(cx.theme().radius) .refine_style(&self.style) .when_some(self.icon.clone(), |this, icon| { this.child( @@ -417,7 +418,6 @@ impl RenderOnce for ColorPicker { .border_1() .m_1() .border_color(cx.theme().input) - .rounded(cx.theme().radius) .shadow_xs() .rounded(cx.theme().radius) .overflow_hidden() @@ -470,7 +470,6 @@ impl RenderOnce for ColorPicker { .border_1() .border_color(cx.theme().border) .shadow_lg() - .rounded(cx.theme().radius) .bg(cx.theme().background) .child(self.render_colors(window, cx)) .on_mouse_up_out(