diff --git a/crates/ui/src/checkbox.rs b/crates/ui/src/checkbox.rs index fb5665ae..c6f9db48 100644 --- a/crates/ui/src/checkbox.rs +++ b/crates/ui/src/checkbox.rs @@ -124,6 +124,9 @@ impl RenderOnce for Checkbox { this } }) + .when(self.disabled, |this| { + this.cursor_not_allowed().text_color(cx.theme().muted_foreground) + }) .when_some( self.on_click.filter(|_| !self.disabled), |this, on_click| { diff --git a/crates/ui/src/time/calendar.rs b/crates/ui/src/time/calendar.rs index e850d93b..285bbb0a 100644 --- a/crates/ui/src/time/calendar.rs +++ b/crates/ui/src/time/calendar.rs @@ -593,7 +593,7 @@ impl Calendar { let active = (ix + 1) as u8 == self.current_month; self.item_button(ix, month.to_string(), active, false, false, cx) - .w(relative(0.3)) + .w(relative(0.3)).text_sm() .on_click(cx.listener(move |view, _, cx| { view.current_month = (ix + 1) as u8; view.set_view_mode(ViewMode::Day, cx);