From fd22c9bef9a4f1d9243cd844d95ff779728967f7 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 3 Oct 2024 15:20:41 -0400 Subject: [PATCH] editor: Use predefined `rounding` value for color swatches (#18708) This PR updates the color swatches added in #18665 to use a predefined `rounding` value instead of a literal value. The underlying values are the same, but we don't want to diverge from our design system. Release Notes: - N/A --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index e2355461046e3610318cd861dfcb6792060b3ebb..6fdcb22605de90bb09bdb9a98e5cfa121fdfed81 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1230,7 +1230,7 @@ impl CompletionsMenu { let color_swatch = completion .color() - .map(|color| div().size_4().bg(color).rounded(px(2.))); + .map(|color| div().size_4().bg(color).rounded_sm()); div().min_w(px(220.)).max_w(px(540.)).child( ListItem::new(mat.candidate_id)