Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop-gpui): make off toggles and empty radios visible in settings
Richie McIlroy5afe68b1ff74
diff --git a/apps/desktop-gpui/src/settings_window.rs b/apps/desktop-gpui/src/settings_window.rsindex b6e6bfc81..178fec4fa 100644--- a/apps/desktop-gpui/src/settings_window.rs+++ b/apps/desktop-gpui/src/settings_window.rs@@ -3268,7 +3268,7 @@ impl SettingsWindow {}).when(!checked, |this| {this.border_1()- .border_color(theme.settings_border())+ .border_color(theme.settings_muted().opacity(0.55)).group_hover("studio-quality-option", |style| {style.border_color(theme.settings_muted())})diff --git a/apps/desktop-gpui/src/ui/toggle.rs b/apps/desktop-gpui/src/ui/toggle.rsindex 72d9f0197..ff8e690b5 100644--- a/apps/desktop-gpui/src/ui/toggle.rs+++ b/apps/desktop-gpui/src/ui/toggle.rs@@ -79,10 +79,13 @@ impl Toggle {pub fn settings(theme: &Theme, id: impl Into<ElementId>, checked: bool) -> Self {Self {size: ToggleSize::Sm,- off_fill: theme- .material- .map(|material| Hsla::from(material.control_fill))- .unwrap_or_else(|| Hsla::from(theme.gray_6)),+ // The material's control fill is near-white in light mode, so an+ // off toggle read as a blank pill on the white settings cards.+ off_fill: if theme.is_dark() {+ gpui::hsla(0., 0., 1., 0.16)+ } else {+ gpui::hsla(0., 0., 0., 0.13)+ },on_fill: gpui::rgb(Theme::SETTINGS_ACCENT).into(),..Self::plain(theme, id, checked)}