Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(voice): match project UI patterns and add ds-checkbox component

vastsa84e0a55daba8
diff --git a/apps/desktop/src/features/settings/voice/VoiceSettingsSection.tsx b/apps/desktop/src/features/settings/voice/VoiceSettingsSection.tsx
index 18e67ebc3..f87ba518d 100644
--- a/apps/desktop/src/features/settings/voice/VoiceSettingsSection.tsx
+++ b/apps/desktop/src/features/settings/voice/VoiceSettingsSection.tsx
@@ -99,7 +99,7 @@ export function VoiceSettingsSection({
};
return (
- <div className="settings-stack">
+ <div className="settings-stack voice-settings">
{/* ---- Enable ---- */}
<SettingsCard title={t("settings.voice")}>
<SettingsRow title={t("settings.voiceEnable")}>
diff --git a/apps/desktop/src/styles/ui-kit.css b/apps/desktop/src/styles/ui-kit.css
index 3bf7ed1b6..4dd24eca6 100644
--- a/apps/desktop/src/styles/ui-kit.css
+++ b/apps/desktop/src/styles/ui-kit.css
@@ -338,3 +338,42 @@
margin: 5px 6px;
background: var(--ds-border-subtle);
}
+
+/* ---- Checkbox: high-contrast custom draw (dark + light) ---- */
+.ds-checkbox {
+ appearance: none;
+ -webkit-appearance: none;
+ width: 16px;
+ height: 16px;
+ flex: 0 0 auto;
+ border-radius: 4px;
+ border: 1.5px solid var(--ds-text-secondary);
+ background: transparent;
+ cursor: pointer;
+ position: relative;
+ transition:
+ background var(--motion-duration-fast) var(--motion-ease-out),
+ border-color var(--motion-duration-fast) var(--motion-ease-out);
+}
+
+.ds-checkbox:checked {
+ background: var(--ds-accent);
+ border-color: var(--ds-accent);
+}
+
+.ds-checkbox:checked::after {
+ content: "";
+ position: absolute;
+ top: 2px;
+ left: 5px;
+ width: 4px;
+ height: 8px;
+ border: solid var(--ds-bg, #000);
+ border-width: 0 1.5px 1.5px 0;
+ transform: rotate(45deg);
+}
+
+.ds-checkbox:disabled {
+ opacity: 0.4;
+ cursor: not-allowed;
+}
diff --git a/apps/desktop/src/styles/voice.css b/apps/desktop/src/styles/voice.css
index 107e22aae..c4e4cafd7 100644
--- a/apps/desktop/src/styles/voice.css
+++ b/apps/desktop/src/styles/voice.css
@@ -107,3 +107,10 @@
.voice-error {
color: var(--color-danger, #ef4444);
}
+
+/* ---- Voice settings: wider control column ---- */
+.voice-settings .settings-row-control {
+ max-width: none;
+}
+
+