BlueGit

ict rusty-teams

fix(settings): round the nav corners of the settings dialog

- The nav background was square at the top and bottom left; the panel clip does not round child backgrounds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-17 · 6 weeks ago

Hash
3d9217ff754c2e8cba066ad49d29fd58e8b80ebe
Parent
01283219
2 files changed +2 −1
crates/app/src/settings/dialog.rs +1 −1
@@ -16,7 +16,7 @@ use crate::theme::{self, ElevatedSurface as _};
16 16 use crate::views::widgets::icon;
17 17
18 18 const BACKDROP_OPACITY: f32 = 0.55;
19 const PANEL_RADIUS: f32 = 10.;
19 pub(super) const PANEL_RADIUS: f32 = 10.;
20 20 const CONTENT_MAX_WIDTH: f32 = 744.;
21 21 const CLOSE_SIZE: f32 = 32.;
22 22 const COMPACT_BELOW_WIDTH: f32 = 1100.;
@@ -16,7 +16,7 @@ use crate::theme::{self, ElevatedSurface as _};
16use crate::views::widgets::icon;
16use crate::views::widgets::icon;
17
17
18const BACKDROP_OPACITY: f32 = 0.55;
18const BACKDROP_OPACITY: f32 = 0.55;
19const PANEL_RADIUS: f32 = 10.;
19pub(super) const PANEL_RADIUS: f32 = 10.;
20const CONTENT_MAX_WIDTH: f32 = 744.;
20const CONTENT_MAX_WIDTH: f32 = 744.;
21const CLOSE_SIZE: f32 = 32.;
21const CLOSE_SIZE: f32 = 32.;
22const COMPACT_BELOW_WIDTH: f32 = 1100.;
22const COMPACT_BELOW_WIDTH: f32 = 1100.;
crates/app/src/settings/nav.rs +1 −0
@@ -85,6 +85,7 @@ pub fn render_nav(
85 85 .px(px(NAV_PADDING_X))
86 86 .py(px(layout.padding_y))
87 87 .gap(px(ITEM_GAP))
88 .rounded_l(px(super::dialog::PANEL_RADIUS))
88 89 .bg(theme::surface_raised())
89 90 .child(
90 91 div()
@@ -85,6 +85,7 @@ pub fn render_nav(
85 .px(px(NAV_PADDING_X))
85 .px(px(NAV_PADDING_X))
86 .py(px(layout.padding_y))
86 .py(px(layout.padding_y))
87 .gap(px(ITEM_GAP))
87 .gap(px(ITEM_GAP))
88 .rounded_l(px(super::dialog::PANEL_RADIUS))
88 .bg(theme::surface_raised())
89 .bg(theme::surface_raised())
89 .child(
90 .child(
90 div()
91 div()