From 175702e55ae8e9b8a8bb3bccf44ec095c19a8d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 10 Jul 2026 12:11:56 -0400 Subject: [PATCH] refactor(appearance): remove the decorative accent color row --- .../src/shell/chrome/appearance_form.rs | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/crates/ely_app/src/shell/chrome/appearance_form.rs b/crates/ely_app/src/shell/chrome/appearance_form.rs index 5d0af0e..e9d3d40 100644 --- a/crates/ely_app/src/shell/chrome/appearance_form.rs +++ b/crates/ely_app/src/shell/chrome/appearance_form.rs @@ -144,7 +144,6 @@ fn render_appearance_rows( .flex() .flex_col() .child(render_theme_mode_row(appearance.theme_mode(), cx)) - .child(render_accent_row()) .child(render_translucency_row(shell, appearance.translucency_pct())) .child(render_reduce_motion_row(shell, appearance.reduce_motion(), cx)) .child(render_reset_row(cx)) @@ -258,36 +257,6 @@ fn theme_segment( .into_any_element() } -fn render_accent_row() -> AnyElement { - settings_row( - "Accent color", - "Used across selection, focus rings & links.", - div() - .flex() - .items_center() - .gap(px(8.0)) - .child(swatch(colors::accent(), true)) - .child(swatch(0xec6a8e, false)) - .child(swatch(0x7c6cf7, false)) - .child(swatch(0x4fb59a, false)) - .child(swatch(colors::ink(), false)) - .into_any_element(), - ) -} - -fn swatch(color: u32, selected: bool) -> AnyElement { - let mut element = div() - .size(px(22.0)) - .rounded_full() - .bg(rgb(color)) - .border_1() - .border_color(rgba(0x0000000d)); - if selected { - element = element.border_2().border_color(rgb(colors::accent())); - } - element.into_any_element() -} - fn render_reduce_motion_row( shell: &ElyShell, reduce: bool,