Skip to content

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

fix(settings): replace leftover native selects with hugging menu pickers

vastsa4720f7f43150
diff --git a/apps/desktop/src/components/plugins/MarketplaceSourceSettings.tsx b/apps/desktop/src/components/plugins/MarketplaceSourceSettings.tsx
index 6f930852e..6a0b87759 100644
--- a/apps/desktop/src/components/plugins/MarketplaceSourceSettings.tsx
+++ b/apps/desktop/src/components/plugins/MarketplaceSourceSettings.tsx
@@ -3,7 +3,8 @@ import { useTranslation } from "react-i18next";
import type { AppSettings, PluginMarketSource } from "@pi-desktop/shared";
import { api } from "../../lib/api";
import { useAppStore } from "../../stores/app-store";
-import { Input, Select } from "../ui";
+import { Input } from "../ui";
+import { SettingsMenuSelect } from "../settings/SettingsMenuSelect";
type MarketplaceSourceSettingsProps = {
settings: AppSettings;
@@ -65,19 +66,20 @@ export function MarketplaceSourceSettings({
</h2>
</div>
<div className="plugins-market-settings-control">
- <Select
+ <SettingsMenuSelect
+ label={t("settings.marketProvider")}
value={source}
- aria-label={t("settings.marketProvider")}
- onChange={(event) =>
+ onChange={(id) =>
void applySource({
- pluginMarketSource: event.target.value as PluginMarketSource,
+ pluginMarketSource: id as PluginMarketSource,
})
}
- >
- <option value="official">{t("settings.marketProviderOfficial")}</option>
- <option value="mirror">{t("settings.marketProviderMirror")}</option>
- <option value="custom">{t("settings.marketProviderCustom")}</option>
- </Select>
+ options={[
+ { id: "official", label: t("settings.marketProviderOfficial") },
+ { id: "mirror", label: t("settings.marketProviderMirror") },
+ { id: "custom", label: t("settings.marketProviderCustom") },
+ ]}
+ />
</div>
</div>
diff --git a/apps/desktop/src/components/plugins/PluginSettingsSheet.tsx b/apps/desktop/src/components/plugins/PluginSettingsSheet.tsx
index 4ffe8be78..2c91fc34b 100644
--- a/apps/desktop/src/components/plugins/PluginSettingsSheet.tsx
+++ b/apps/desktop/src/components/plugins/PluginSettingsSheet.tsx
@@ -15,8 +15,9 @@ import {
} from "@pi-desktop/shared";
import { api } from "../../lib/api";
import { useAppStore } from "../../stores/app-store";
-import { Button, TooltipButton, cx, Input, Select, Textarea } from "../ui";
+import { Button, TooltipButton, cx, Input, Textarea } from "../ui";
import { IconKeyboard, IconSettings, IconX } from "../icons";
+import { SettingsMenuSelect } from "../settings/SettingsMenuSelect";
type Props = {
plugin: PluginSummary;
@@ -211,17 +212,18 @@ export function PluginSettingsSheet({ plugin, platform, onClose, onSaved }: Prop
<span className="settings-toggle-thumb" />
</button>
) : setting.type === "select" ? (
- <Select
+ <SettingsMenuSelect
+ label={setting.title}
value={String((setting.enum ?? []).findIndex((option) => Object.is(option.value, value)))}
- onChange={(event) => {
- const option = setting.enum?.[Number(event.target.value)];
+ onChange={(id) => {
+ const option = setting.enum?.[Number(id)];
if (option) setValue(setting.key, option.value);
}}
- >
- {(setting.enum ?? []).map((option, index) => (
- <option key={`${setting.key}-${index}`} value={index}>{option.label}</option>
- ))}
- </Select>
+ options={(setting.enum ?? []).map((option, index) => ({
+ id: String(index),
+ label: option.label,
+ }))}
+ />
) : setting.type === "json" ? (
<Textarea
className="plugins-setting-json"
diff --git a/apps/desktop/src/components/settings/AgentCapabilityLayout.tsx b/apps/desktop/src/components/settings/AgentCapabilityLayout.tsx
index 796a626aa..8a12f5a66 100644
--- a/apps/desktop/src/components/settings/AgentCapabilityLayout.tsx
+++ b/apps/desktop/src/components/settings/AgentCapabilityLayout.tsx
@@ -8,10 +8,10 @@ import { useTranslation } from "react-i18next";
import type { ProjectRecord } from "@pi-desktop/shared";
import { api } from "../../lib/api";
import { useAppStore } from "../../stores/app-store";
-import { Button, Select, TooltipButton, cx } from "../ui";
+import { Button, TooltipButton, cx } from "../ui";
import { AnchoredMenu } from "./AnchoredMenu";
+import { SettingsMenuSelect } from "./SettingsMenuSelect";
import {
- IconChevronDown,
IconFolder,
IconFolderOpen,
IconMore,
@@ -142,27 +142,24 @@ export function AgentProjectPicker({
}) {
const { t } = useTranslation();
return (
- <label className="agent-capability-project-picker">
- <span className="sr-only">{label}</span>
+ <div className="agent-capability-project-picker">
<IconFolder size={13} aria-hidden="true" />
- <Select
+ <SettingsMenuSelect
+ className="agent-capability-project-select"
+ label={label}
value={value ?? ""}
- aria-label={label}
disabled={disabled || options.length === 0}
- onChange={(event) => onChange(event.target.value)}
- >
- {options.length === 0 ? (
- <option value="">{t("settings.noProjects")}</option>
- ) : (
- options.map((project) => (
- <option key={project.path} value={project.path}>
- {project.name}
- </option>
- ))
- )}
- </Select>
- <IconChevronDown size={12} aria-hidden="true" />
- </label>
+ onChange={onChange}
+ options={
+ options.length === 0
+ ? [{ id: "", label: t("settings.noProjects"), disabled: true }]
+ : options.map((project) => ({
+ id: project.path,
+ label: project.name,
+ }))
+ }
+ />
+ </div>
);
}
diff --git a/apps/desktop/src/components/settings/ModelSelectionPanes.tsx b/apps/desktop/src/components/settings/ModelSelectionPanes.tsx
index b99f653eb..35914c92a 100644
--- a/apps/desktop/src/components/settings/ModelSelectionPanes.tsx
+++ b/apps/desktop/src/components/settings/ModelSelectionPanes.tsx
@@ -29,6 +29,7 @@ import {
} from "../../lib/model-limit-presets";
import { Button, Field, Input, Tooltip, TooltipButton, cx } from "../ui";
import { IconClose, IconHelp, IconPlus, IconRefresh, IconSearch } from "../icons";
+import { SettingsMenuSelect } from "./SettingsMenuSelect";
import { filterChosenModels, hidesAddedBinding } from "./model-chosen-filter";
import { describeModelsFetchError } from "./model-fetch-error";
import type { ProviderModelsState } from "./useProviderModels";
@@ -681,32 +682,30 @@ export function ModelSelectionPanes({
</span>
) : null}
{enabledLevels.length > 1 ? (
- <label className="provider-chosen-thinking-default">
+ <div className="provider-chosen-thinking-default">
<span className="provider-chosen-thinking-label">
{t("settings.defaultThinkingLevel")}
</span>
- <select
+ <SettingsMenuSelect
className="provider-chosen-thinking-select"
+ label={t("settings.defaultThinkingLevel")}
value={
binding.defaultThinkingLevel &&
enabledLevels.includes(binding.defaultThinkingLevel)
? binding.defaultThinkingLevel
: (enabledLevels[0] ?? "")
}
- onChange={(event) =>
+ onChange={(id) =>
updateBinding(binding.id, {
- defaultThinkingLevel: event.target
- .value as ThinkingLevel,
+ defaultThinkingLevel: id as ThinkingLevel,
})
}
- >
- {enabledLevels.map((level) => (
- <option key={level} value={level}>
- {level}
- </option>
- ))}
- </select>
- </label>
+ options={enabledLevels.map((level) => ({
+ id: level,
+ label: level,
+ }))}
+ />
+ </div>
) : null}
</div>
<div
diff --git a/apps/desktop/src/components/settings/ProviderHeadersEditor.tsx b/apps/desktop/src/components/settings/ProviderHeadersEditor.tsx
index daa5b00ee..20a206182 100644
--- a/apps/desktop/src/components/settings/ProviderHeadersEditor.tsx
+++ b/apps/desktop/src/components/settings/ProviderHeadersEditor.tsx
@@ -7,7 +7,8 @@ import {
type KeyValuePair,
} from "../extensions/KeyValueRows";
import { IconCheck, IconCopy } from "../icons";
-import { Button, Select } from "../ui";
+import { Button } from "../ui";
+import { SettingsMenuSelect } from "./SettingsMenuSelect";
type HeaderPreset = {
key: string;
@@ -105,19 +106,19 @@ export function ProviderHeadersEditor({
<div className="provider-setup-headers-toolbar">
<div className="provider-setup-headers-label">{t("settings.headers")}</div>
<div className="provider-setup-headers-actions">
- <Select
+ <SettingsMenuSelect
className="provider-setup-header-preset"
- aria-label={t("settings.addCommonHeader")}
+ label={t("settings.addCommonHeader")}
value=""
- onChange={(event) => addPreset(event.target.value)}
- >
- <option value="">{t("settings.addCommonHeader")}</option>
- {HEADER_PRESETS.map((preset) => (
- <option key={preset.key} value={preset.key}>
- {preset.key}
- </option>
- ))}
- </Select>
+ onChange={(id) => addPreset(id)}
+ options={[
+ { id: "", label: t("settings.addCommonHeader") },
+ ...HEADER_PRESETS.map((preset) => ({
+ id: preset.key,
+ label: preset.key,
+ })),
+ ]}
+ />
<Button
variant="ghost"
size="sm"
diff --git a/apps/desktop/src/components/settings/ProviderSetupDialog.tsx b/apps/desktop/src/components/settings/ProviderSetupDialog.tsx
index 6feb11a38..f029a31ce 100644
--- a/apps/desktop/src/components/settings/ProviderSetupDialog.tsx
+++ b/apps/desktop/src/components/settings/ProviderSetupDialog.tsx
@@ -16,8 +16,9 @@ import {
} from "@pi-desktop/shared";
import { api } from "../../lib/api";
import { pairsToRecord, recordToPairs } from "../extensions/KeyValueRows";
-import { Button, Field, Input, Select } from "../ui";
+import { Button, Field, Input } from "../ui";
import { ProviderHeadersEditor } from "./ProviderHeadersEditor";
+import { SettingsMenuSelect } from "./SettingsMenuSelect";
import { useProviderModels } from "./useProviderModels";
import { ModelSelectionPanes, useModelSelection } from "./ModelSelectionPanes";
import { CUSTOM_SERVICE, ServicePicker } from "./ServicePicker";
@@ -487,26 +488,26 @@ export function ProviderSetupDialog({
? "settings.apiStyleChooseCustom"
: "settings.apiStyleLegacyAccount") : undefined}
>
- <Select
+ <SettingsMenuSelect
+ fullWidth
+ label={t("settings.apiStyle")}
value={apiStyle}
disabled={saving}
- onChange={(event) =>
- setApiStyle(event.target.value as CatalogApiStyle)
- }
- >
- {accountOnlyApiStyle ? (
- <option value={apiStyle} disabled>
- {t(API_STYLE_LABEL_KEYS[apiStyle])}
- </option>
- ) : null}
- {CUSTOM_PROVIDER_API_STYLES.map(
- (style) => (
- <option key={style} value={style}>
- {t(API_STYLE_LABEL_KEYS[style])}
- </option>
- ),
- )}
- </Select>
+ onChange={(id) => setApiStyle(id as CatalogApiStyle)}
+ options={[
+ ...(accountOnlyApiStyle
+ ? [{
+ id: apiStyle,
+ label: t(API_STYLE_LABEL_KEYS[apiStyle]),
+ disabled: true,
+ }]
+ : []),
+ ...CUSTOM_PROVIDER_API_STYLES.map((style) => ({
+ id: style,
+ label: t(API_STYLE_LABEL_KEYS[style]),
+ })),
+ ]}
+ />
</Field>
</div>
</>
diff --git a/apps/desktop/src/components/settings/SettingsMenuSelect.tsx b/apps/desktop/src/components/settings/SettingsMenuSelect.tsx
index 86bec5848..4c44451c2 100644
--- a/apps/desktop/src/components/settings/SettingsMenuSelect.tsx
+++ b/apps/desktop/src/components/settings/SettingsMenuSelect.tsx
@@ -5,8 +5,10 @@
* `overflow: hidden`), so the option list opens through `AnchoredMenu`. A
* native `<select>` draws its popup at the OS level instead: it ignores the
* menu surface tokens, shows the platform highlight, and has no current-value
- * marker. Rows whose list is short still use this control so one Settings
- * window does not mix two popup implementations.
+ * marker. The closed trigger sizes to the current label (capped by its parent)
+ * so a short value does not stretch the settings control column. Rows whose
+ * list is short still use this control so one Settings window does not mix two
+ * popup implementations.
*
* Unlike the Appearance pickers this list is not searchable — the longest
* catalog here is the host command-shell list — so the menu opens on the
@@ -31,6 +33,7 @@ export function SettingsMenuSelect({
label,
disabled = false,
busy = false,
+ fullWidth = false,
className,
}: {
value: string;
@@ -41,6 +44,8 @@ export function SettingsMenuSelect({
disabled?: boolean;
/** Keeps the trigger non-interactive while a write is in flight. */
busy?: boolean;
+ /** Stretch across a form field. Compact settings rows leave this off. */
+ fullWidth?: boolean;
className?: string;
}) {
const [open, setOpen] = useState(false);
@@ -82,7 +87,7 @@ export function SettingsMenuSelect({
};
return (
- <div className={cx("settings-menu-select-anchor", className)}>
+ <div className={cx("settings-menu-select-anchor", fullWidth && "is-full", className)}>
<AnchoredMenu
open={open}
onClose={close}
diff --git a/apps/desktop/src/components/settings/SubagentEditorSheet.tsx b/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
index ef3bfb113..da81ab132 100644
--- a/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
+++ b/apps/desktop/src/components/settings/SubagentEditorSheet.tsx
@@ -19,7 +19,7 @@ import {
type UserSubagentRecord,
} from "@pi-desktop/shared";
import { useAppStore } from "../../stores/app-store";
-import { Button, Field, Input, Select, Textarea, TooltipButton, cx } from "../ui";
+import { Button, Field, Input, Textarea, TooltipButton, cx } from "../ui";
import { IconChevronRight, IconFolderOpen, IconX } from "../icons";
import {
groupSubagentModelChoices,
@@ -30,6 +30,7 @@ import {
} from "./subagent-models";
import { SubagentModelPicker } from "./SubagentModelPicker";
import { SubagentFallbackModels } from "./SubagentFallbackModels";
+import { SettingsMenuSelect } from "./SettingsMenuSelect";
/** Hard cap host-core enforces on a definition document. */
export const MAX_SUBAGENT_BYTES = 32 * 1024;
@@ -445,25 +446,24 @@ function ModelField({
label={t("extensions.subagents.thinking")}
hint={t("extensions.subagents.thinkingHint")}
>
- <Select
+ <SettingsMenuSelect
+ fullWidth
+ label={t("extensions.subagents.thinking")}
value={draft.thinkingLevel}
- onChange={(event) =>
+ onChange={(id) =>
setDraft({
...draft,
- thinkingLevel: event.target.value as SubagentThinkingLevel | "",
+ thinkingLevel: id as SubagentThinkingLevel | "",
})
}
- >
- <option value="">{t("extensions.subagents.thinkingInherit")}</option>
- <option value="omit">{t("extensions.subagents.thinkingOmit")}</option>
- {SUBAGENT_THINKING_LEVELS.filter((level) => level !== "omit").map(
- (level) => (
- <option key={level} value={level}>
- {level}
- </option>
+ options={[
+ { id: "", label: t("extensions.subagents.thinkingInherit") },
+ { id: "omit", label: t("extensions.subagents.thinkingOmit") },
+ ...SUBAGENT_THINKING_LEVELS.filter((level) => level !== "omit").map(
+ (level) => ({ id: level, label: level }),
),
- )}
- </Select>
+ ]}
+ />
</Field>
</div>
<SubagentFallbackModels
diff --git a/apps/desktop/src/features/settings/agent-sections.tsx b/apps/desktop/src/features/settings/agent-sections.tsx
index a9c9bce2b..a999f8d2d 100644
--- a/apps/desktop/src/features/settings/agent-sections.tsx
+++ b/apps/desktop/src/features/settings/agent-sections.tsx
@@ -11,9 +11,10 @@ import {
groupImportCandidates,
type ImportGroupBy,
} from "../../lib/import-groups";
-import { Badge, Button, Select, cx } from "../../components/ui";
+import { Badge, Button, cx } from "../../components/ui";
import { IconChevronLeft, IconFileText } from "../../components/icons";
import { ReleaseNotesDialog } from "../../components/ReleaseNotesDialog";
+import { SettingsMenuSelect } from "../../components/settings/SettingsMenuSelect";
import { SettingsCard, SettingsRow } from "./primitives";
export function AgentInstructionsSection() {
@@ -319,17 +320,19 @@ export function SessionImportPanel() {
<div className="import-toolbar-actions">
<label className="import-group-by">
<span>{t("settings.importGroupBy")}</span>
- <Select
+ <SettingsMenuSelect
+ className="import-group-select"
+ label={t("settings.importGroupBy")}
value={groupBy}
- className="settings-pill-select import-group-select"
- onChange={(event) => {
- setGroupBy(event.target.value as ImportGroupBy);
+ onChange={(id) => {
+ setGroupBy(id as ImportGroupBy);
setExpandedGroups(new Set());
}}
- >
- <option value="source">{t("settings.importGroupBySource")}</option>
- <option value="path">{t("settings.importGroupByPath")}</option>
- </Select>
+ options={[
+ { id: "source", label: t("settings.importGroupBySource") },
+ { id: "path", label: t("settings.importGroupByPath") },
+ ]}
+ />
</label>
<Button
variant="primary"
diff --git a/apps/desktop/src/styles/model-config.css b/apps/desktop/src/styles/model-config.css
index fb4ab4ba1..c7c9557c6 100644
--- a/apps/desktop/src/styles/model-config.css
+++ b/apps/desktop/src/styles/model-config.css
@@ -426,11 +426,11 @@
flex-wrap: wrap;
}
-.provider-setup-header-preset {
+.provider-setup-header-preset .settings-menu-select-trigger {
width: auto;
max-width: 170px;
- min-height: 26px;
- padding: 3px 7px;
+ height: 26px;
+ padding: 0 8px 0 8px;
color: var(--ds-text-secondary);
font-size: var(--text-2xs);
}
@@ -1037,19 +1037,15 @@
margin-left: auto;
}
-.provider-chosen-thinking-select {
- min-height: 24px;
- padding: 1px 6px;
- border: 0;
+.provider-chosen-thinking-select .settings-menu-select-trigger {
+ height: 24px;
+ padding: 0 8px;
border-radius: var(--radius-sm);
- background: var(--ds-raised);
- box-shadow: var(--ds-raised-shadow);
- color: var(--ds-text-primary);
font-size: var(--text-2xs);
line-height: var(--leading-normal);
}
-.provider-chosen-thinking-select:focus-visible {
+.provider-chosen-thinking-select .settings-menu-select-trigger:focus-visible {
outline: 2px solid var(--ds-accent-soft);
outline-offset: 1px;
}
@@ -1668,6 +1664,7 @@
.provider-setup-header-preset {
flex: 1 1 120px;
min-width: 0;
+ max-width: none;
}
.model-provider-row {
diff --git a/apps/desktop/src/styles/plugins.css b/apps/desktop/src/styles/plugins.css
index 41c90ce84..96f617057 100644
--- a/apps/desktop/src/styles/plugins.css
+++ b/apps/desktop/src/styles/plugins.css
@@ -851,6 +851,11 @@
flex: 1 1 auto;
}
+.plugins-setting-control > .settings-menu-select-anchor {
+ min-width: 0;
+ max-width: 100%;
+}
+
.plugins-setting-json {
min-height: 72px;
width: 100%;
@@ -1173,8 +1178,9 @@
.plugins-market-settings-control {
display: flex;
- flex: 0 0 240px;
+ flex: 0 0 auto;
min-width: 0;
+ max-width: min(240px, 100%);
justify-content: flex-end;
}
diff --git a/apps/desktop/src/styles/sessions.css b/apps/desktop/src/styles/sessions.css
index 14dc376e1..27d535625 100644
--- a/apps/desktop/src/styles/sessions.css
+++ b/apps/desktop/src/styles/sessions.css
@@ -41,8 +41,7 @@
white-space: nowrap;
}
-.import-group-select.settings-pill-select {
- min-width: 116px;
+.import-group-select .settings-menu-select-trigger {
height: 28px;
}
diff --git a/apps/desktop/src/styles/settings.css b/apps/desktop/src/styles/settings.css
index 1e1400534..a6b9bf170 100644
--- a/apps/desktop/src/styles/settings.css
+++ b/apps/desktop/src/styles/settings.css
@@ -396,12 +396,18 @@
justify-content: flex-end;
}
-.settings-row-control .field-select,
.settings-row-control .field-input {
width: 100%;
min-width: 140px;
}
+.settings-row-control .field-select,
+.settings-row-control .settings-menu-select-anchor {
+ width: max-content;
+ max-width: 100%;
+ min-width: 0;
+}
+
.settings-number-control {
display: flex;
flex-direction: column;
@@ -731,7 +737,9 @@
.settings-pill-select,
.settings-row-control .field-select {
- min-width: 132px;
+ width: max-content;
+ max-width: 100%;
+ min-width: 0;
height: 30px;
border-radius: var(--radius-full);
border: 0;
@@ -910,27 +918,35 @@
}
/* Language and theme pickers (Appearance) plus the short-list menu selects on
- the remaining tabs. Pill trigger matches the font picker; the menu is an
- AnchoredMenu so the settings card cannot clip it, and one definition here
- means a design change reaches every Settings picker together. */
+ the remaining tabs. Pill trigger matches the font picker; the closed control
+ hugs the current label (capped by the row) so a short value does not stretch
+ the column. The menu is an AnchoredMenu so the settings card cannot clip it,
+ and one definition here means a design change reaches every Settings picker
+ together. */
.settings-language-anchor,
.settings-theme-anchor,
.settings-menu-select-anchor {
position: relative;
- width: 100%;
+ width: max-content;
+ max-width: 100%;
min-width: 0;
}
+.settings-menu-select-anchor.is-full {
+ width: 100%;
+}
+
.settings-language-trigger,
.settings-theme-trigger,
.settings-menu-select-trigger {
- display: flex;
+ display: inline-flex;
align-items: center;
gap: 8px;
- width: 100%;
+ width: max-content;
+ max-width: 100%;
min-width: 0;
height: 30px;
- padding: 0 12px;
+ padding: 0 10px 0 12px;
border-radius: var(--radius-full);
background: var(--ds-raised);
box-shadow: var(--ds-raised-shadow);
@@ -938,6 +954,11 @@
font-size: var(--text-sm-plus);
}
+.settings-menu-select-anchor.is-full .settings-menu-select-trigger {
+ display: flex;
+ width: 100%;
+}
+
.settings-language-trigger:hover,
.settings-theme-trigger:hover,
.settings-menu-select-trigger:hover {
@@ -954,13 +975,17 @@
.settings-theme-trigger-label,
.settings-menu-select-trigger-label {
min-width: 0;
- flex: 1;
+ flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
+.settings-menu-select-anchor.is-full .settings-menu-select-trigger-label {
+ flex: 1;
+}
+
.settings-language-trigger > svg,
.settings-theme-trigger > svg,
.settings-menu-select-trigger > svg {
@@ -985,6 +1010,12 @@
visibility: hidden;
}
+.settings-menu-select-menu {
+ width: max-content;
+ min-width: 8rem;
+ max-width: min(280px, calc(100vw - 48px));
+}
+
.settings-language-menu.is-open,
.settings-theme-menu.is-open,
.settings-menu-select-menu.is-open {
@@ -1817,56 +1848,27 @@
.agent-capability-project-picker {
position: relative;
display: inline-flex;
- min-width: 148px;
max-width: 200px;
align-items: center;
color: var(--ds-text-muted);
}
-.agent-capability-project-picker select {
+.agent-capability-project-picker .settings-menu-select-trigger {
min-width: 0;
- width: 100%;
+ max-width: 200px;
height: var(--agent-capability-control-height, 32px);
- appearance: none;
- border: 0;
+ padding-left: 26px;
border-radius: var(--radius-sm);
- background: var(--ds-raised);
- box-shadow: var(--ds-raised-shadow);
- padding: 0 25px;
- color: var(--ds-text-primary);
- cursor: pointer;
font-size: var(--text-xs-plus);
- outline: none;
- transition:
- background var(--motion-duration-fast) var(--motion-ease-out),
- box-shadow var(--motion-duration-fast) var(--motion-ease-out);
}
-.agent-capability-project-picker > svg:first-of-type {
+.agent-capability-project-picker > svg {
position: absolute;
left: 8px;
+ z-index: 1;
pointer-events: none;
}
-.agent-capability-project-picker > svg:last-of-type {
- position: absolute;
- right: 7px;
- pointer-events: none;
-}
-
-.agent-capability-project-picker select:hover:not(:disabled) {
- background: var(--ds-bg-hover);
-}
-
-.agent-capability-project-picker select:focus-visible {
- box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 30%, transparent);
-}
-
-.agent-capability-project-picker select:disabled {
- cursor: not-allowed;
- opacity: 0.55;
-}
-
/* Skeleton loading mirrors the row anatomy instead of a labeled block. */
.agent-capability-skeleton {
display: flex;
@@ -2044,7 +2046,7 @@
.agent-capability-panel.is-refreshing .agent-capability-list,
.agent-capability-row-actions > .settings-icon-button,
.agent-capability-row-actions .agent-capability-menu-wrap,
- .agent-capability-project-picker select,
+ .agent-capability-project-picker .settings-menu-select-trigger,
.agent-capability-skeleton-glyph,
.agent-capability-skeleton-line,
.agent-capability-badge.is-connecting .agent-capability-status-dot {
diff --git a/apps/desktop/test/model-advanced-capabilities.test.mjs b/apps/desktop/test/model-advanced-capabilities.test.mjs
index 64ef08bc3..af83ad2ee 100644
--- a/apps/desktop/test/model-advanced-capabilities.test.mjs
+++ b/apps/desktop/test/model-advanced-capabilities.test.mjs
@@ -38,7 +38,7 @@ test("advanced settings choose the default thinking level among the enabled ones
assert.match(pickerSource, /settings\.defaultThinkingLevel/);
assert.match(pickerSource, /const enabledLevels = sortThinkingLevels\(/);
assert.match(pickerSource, /enabledLevels\.map\(\(level\) => \(/);
- assert.match(pickerSource, /defaultThinkingLevel: event\.target/);
+ assert.match(pickerSource, /defaultThinkingLevel: id as ThinkingLevel/);
// Nothing to choose when a binding enables one level or none.
assert.match(pickerSource, /enabledLevels\.length > 1 \?/);
});
@@ -93,8 +93,8 @@ test("capability overrides reach the transport modality arrays", () => {
test("the capability controls and default selector are styled", () => {
assert.match(styles, /\.provider-chosen-capability-rows \{/);
assert.match(styles, /\.provider-chosen-capability \{/);
- assert.match(styles, /\.provider-chosen-thinking-select \{/);
- assert.match(styles, /\.provider-chosen-thinking-select:focus-visible \{/);
+ assert.match(styles, /\.provider-chosen-thinking-select \.settings-menu-select-trigger \{/);
+ assert.match(styles, /\.provider-chosen-thinking-select \.settings-menu-select-trigger:focus-visible \{/);
});
test("selected thinking chips keep high contrast in both themes", () => {
diff --git a/apps/desktop/test/settings-general.test.mjs b/apps/desktop/test/settings-general.test.mjs
index 07c090369..644d50413 100644
--- a/apps/desktop/test/settings-general.test.mjs
+++ b/apps/desktop/test/settings-general.test.mjs
@@ -396,10 +396,23 @@ test("marketplace source settings live inside the Plugins marketplace surface",
assert.match(pluginsPageSource, /<MarketplaceSourceSettings/);
assert.match(marketplaceSettingsSource, /api\.marketRefresh\(true\)/);
assert.match(marketplaceSettingsSource, /settings\.marketProvider/);
+ assert.match(marketplaceSettingsSource, /<SettingsMenuSelect/);
+ assert.doesNotMatch(marketplaceSettingsSource, /<Select/);
assert.doesNotMatch(settingsPageSource, /ExtensionMarketSection/);
assert.doesNotMatch(settingsPageSource, /tab === "extensions"/);
});
+test("settings compact pickers hug the current label on the shared menu select", () => {
+ assert.match(
+ stylesSource,
+ /\.settings-language-anchor,\s*\.settings-theme-anchor,\s*\.settings-menu-select-anchor\s*\{[^}]*width:\s*max-content/s,
+ );
+ assert.match(
+ stylesSource,
+ /\.settings-language-trigger,\s*\.settings-theme-trigger,\s*\.settings-menu-select-trigger\s*\{[^}]*width:\s*max-content/s,
+ );
+});
+
test("native select menus keep readable theme colors across the app on Windows", () => {
assert.match(
stylesSource,
diff --git a/apps/desktop/test/settings-language-picker.test.mjs b/apps/desktop/test/settings-language-picker.test.mjs
index 3ed9ce49e..135baf320 100644
--- a/apps/desktop/test/settings-language-picker.test.mjs
+++ b/apps/desktop/test/settings-language-picker.test.mjs
@@ -46,9 +46,9 @@ test("the Auto row shows the OS-detected native name", () => {
assert.doesNotMatch(rowSource, /autoLabel} · \$\{detectedInfo/);
});
-test("the language trigger fills the settings control column without a native field chrome", () => {
- assert.match(styles, pickerRule("\\.settings-language-anchor", "width:\\s*100%;"));
- assert.match(styles, pickerRule("\\.settings-language-trigger", "width:\\s*100%;"));
+test("the language trigger hugs the current label without a native field chrome", () => {
+ assert.match(styles, pickerRule("\\.settings-language-anchor", "width:\\s*max-content;"));
+ assert.match(styles, pickerRule("\\.settings-language-trigger", "width:\\s*max-content;"));
assert.match(styles, pickerRule("\\.settings-language-search input", "outline:\\s*none;"));
assert.match(styles, pickerRule("\\.settings-language-search input", "padding:\\s*0;"));
});
diff --git a/apps/desktop/test/settings-theme-picker.test.mjs b/apps/desktop/test/settings-theme-picker.test.mjs
index 231df1ef2..0f91434f8 100644
--- a/apps/desktop/test/settings-theme-picker.test.mjs
+++ b/apps/desktop/test/settings-theme-picker.test.mjs
@@ -43,9 +43,9 @@ test("plugin themes join the same searchable list after the built-ins", () => {
assert.match(rowSource, /showDivider/);
});
-test("the theme trigger fills the settings control column without a native field chrome", () => {
- assert.match(styles, pickerRule("\\.settings-theme-anchor", "width:\\s*100%;"));
- assert.match(styles, pickerRule("\\.settings-theme-trigger", "width:\\s*100%;"));
+test("the theme trigger hugs the current label without a native field chrome", () => {
+ assert.match(styles, pickerRule("\\.settings-theme-anchor", "width:\\s*max-content;"));
+ assert.match(styles, pickerRule("\\.settings-theme-trigger", "width:\\s*max-content;"));
assert.match(styles, pickerRule("\\.settings-theme-search input", "outline:\\s*none;"));
assert.match(styles, pickerRule("\\.settings-theme-search input", "padding:\\s*0;"));
});
diff --git a/apps/desktop/test/subagent-models.test.mjs b/apps/desktop/test/subagent-models.test.mjs
index 5f0d920b7..19685b78b 100644
--- a/apps/desktop/test/subagent-models.test.mjs
+++ b/apps/desktop/test/subagent-models.test.mjs
@@ -331,7 +331,7 @@ test("the editor exposes the no-pass thinking option", async () => {
const thinkingField = source.slice(
source.indexOf('label={t("extensions.subagents.thinking")}'),
);
- assert.match(thinkingField, /value="omit"/);
+ assert.match(thinkingField, /id: "omit"/);
assert.match(thinkingField, /extensions\.subagents\.thinkingOmit/);
assert.match(thinkingField, /SUBAGENT_THINKING_LEVELS/);
});
diff --git a/docs/adr/0161-searchable-theme-picker.md b/docs/adr/0161-searchable-theme-picker.md
index a06e392bf..9e6e2d1d7 100644
--- a/docs/adr/0161-searchable-theme-picker.md
+++ b/docs/adr/0161-searchable-theme-picker.md
@@ -17,9 +17,9 @@ same growing-list problem.
## Decision
1. Theme is a searchable picker row, same anchored-menu pattern as
- Language: the trigger fills the settings control column, the menu
- portals so the settings card cannot clip it, and search filters the
- list.
+ Language: the closed trigger sizes to the current label, capped by the
+ settings control column, the menu portals so the settings card cannot clip
+ it, and search filters the list.
2. Built-in System, Light, and Dark stay pinned at the top. Plugin
themes follow after a divider, with the existing "Provided by …"
hint. Search matches labels, descriptions, ids, and plugin ids.
diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.md
index f8a80aa9f..bee5e7a20 100644
--- a/docs/spec/04-ux/06-settings-ia.md
+++ b/docs/spec/04-ux/06-settings-ia.md
@@ -61,18 +61,19 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
### General
- **Appearance** card:
- **Theme**: a searchable picker row (same anchored-menu pattern as
- Language). The trigger fills the settings control column and shows the
- current name. The menu pins System, Light, and Dark at the top, then lists
- plugin themes after a divider with a "Provided by …" hint. Search matches
- labels, descriptions, ids, and plugin ids. Selection updates
- `settings.theme`.
- - **Language**: a searchable picker row (not a card grid). The trigger fills
- the settings control column and shows the current native name, or Match
- system. The menu pins Auto at the top with the detected language inline
- (e.g. "Currently 简体中文"), then lists every shipped locale with its
- native name (endonym, never translated) and English name for search and
- sort. Selection updates `settings.language`. Adding a locale is a catalog
- plus a registry row; the picker does not hard-code the option list.
+ Language). The closed trigger sizes to the current label, capped by the
+ settings control column, and shows the current name. The menu pins System,
+ Light, and Dark at the top, then lists plugin themes after a divider with a
+ "Provided by …" hint. Search matches labels, descriptions, ids, and plugin
+ ids. Selection updates `settings.theme`.
+ - **Language**: a searchable picker row (not a card grid). The closed trigger
+ sizes to the current label, capped by the settings control column, and
+ shows the current native name, or Match system. The menu pins Auto at the
+ top with the detected language inline (e.g. "Currently 简体中文"), then
+ lists every shipped locale with its native name (endonym, never translated)
+ and English name for search and sort. Selection updates `settings.language`.
+ Adding a locale is a catalog plus a registry row; the picker does not
+ hard-code the option list.
- **Font**: a searchable picker row (trigger shows the current family rendered
in that face) offering the System default, bundled open-licensed families
(Geist, Inter, Noto Sans SC, LXGW WenKai — SIL OFL 1.1, shipped locally),
@@ -120,7 +121,8 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
(ask / accept-edits / auto) that governs how autonomously the agent acts.
The control is a menu select on the shared anchored-menu surface rather than
a platform-drawn `<select>` popup, so every Settings picker opens the same
- way.
+ way. The closed trigger sizes to the current label, capped by the settings
+ control column.
- **Defaults** card: the host-backed default operating mode (Agent / Plan / Goal),
command shell selection, Link open destination, context usage display
(remaining or used), Enter-to-send control, and the large text paste
@@ -469,7 +471,9 @@ system while preserving their different data ownership:
automatically (D007 / D342).
- Sessions: review candidates through `SessionImportPanel`. Source and
project-path grouping behavior follows
- [08-component-spec §18](08-component-spec.md#18-sessionimportpanel)
+ [08-component-spec §18](08-component-spec.md#18-sessionimportpanel).
+ The Group-by control is the same in-app menu select as the Appearance and
+ Permissions pickers, not a platform-drawn `<select>`.
- Model configuration: review provider drafts through
`ModelConfigImportPanel`
([08-component-spec §18.5](08-component-spec.md#185-modelconfigimportpanel)).
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 9f31fd1f1..73bc3c825 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -2204,8 +2204,8 @@ identify the platform validation still needed.
unmatched locales disappear. Type a theme name into the theme search and
confirm unmatched options disappear.
- **Expected**: Theme and Language are searchable picker rows (not a card grid
- and not a native select); each closed trigger fills the settings control
- column without overflowing the row. Theme lists System, Light, and Dark,
+ and not a native select); each closed trigger sizes to the current label,
+ capped by the settings control column, without overflowing the row. Theme lists System, Light, and Dark,
then any plugin themes after a divider. Auto resolves the OS locale through
the main process (`app.getLocale()`), passes it safely through the sandboxed
preload bridge, and reflects the detected native name inline in the menu;
@@ -2231,7 +2231,7 @@ identify the platform validation still needed.
- **Preconditions**: App running with a host that reports at least one configured command shell and at least one catalog shell that is unavailable on this platform.
- **Steps**: 1) Open Settings → General and open the Theme and Language pickers; note the pill trigger and the opened surface. 2) Open 全局 AI. 3) Open the Permissions card's permission-mode control and select ask, accept-edits, and auto in turn. 4) Open the Defaults card's Command shell control; inspect the unavailable entries and select an available shell. 5) Dismiss each open menu with Escape and then with an outside press. 6) Close Settings, reopen it, and read both rows.
-- **Expected**: Both rows open the same anchored menu surface as the Appearance pickers — the app-drawn frame with the shared radius, elevation, border, and theme tokens, a check mark on the current option, and a hover/keyboard highlight — and never a platform-drawn `<select>` popup. Unavailable shells stay listed with their suffix, are not selectable, and cannot become the current value. Escape and an outside press close the menu and restore focus to the trigger; arrow keys move between selectable options with wraparound. The selected permission mode and command shell persist across closing and reopening Settings, and the selected shell stays the only configured-state indicator.
+- **Expected**: Both rows open the same anchored menu surface as the Appearance pickers — the app-drawn frame with the shared radius, elevation, border, and theme tokens, a check mark on the current option, and a hover/keyboard highlight — and never a platform-drawn `<select>` popup. Closed triggers size to the current label, capped by the settings control column. Unavailable shells stay listed with their suffix, are not selectable, and cannot become the current value. Escape and an outside press close the menu and restore focus to the trigger; arrow keys move between selectable options with wraparound. The selected permission mode and command shell persist across closing and reopening Settings, and the selected shell stays the only configured-state indicator.
- **Specs linked**: `04-ux/06-settings-ia.md`, `04-ux/09-interaction-patterns.md`
- **Acceptance**: A (core shell)
- **Milestone**: M4
@@ -4567,11 +4567,13 @@ identify the platform validation still needed.
- **Preconditions**: PI-Desktop is running on Windows with light and dark
themes available.
-- **Steps**: 1) In light theme, open native selects in Settings → Basics,
- Settings → Model configuration, Settings → Import, and one scheduled-task
- form. 2) Repeat every surface in dark theme. 3) Open each list after
+- **Steps**: 1) In light theme, open remaining native selects (scheduled-task
+ form) and confirm Settings pickers on General, 全局 AI, Model configuration,
+ and Import open as in-app menus rather than platform `<select>` popups. 2)
+ Repeat every remaining native list in dark theme. 3) Open each list after
switching themes without restarting the app.
-- **Expected**: Every closed trigger and opened native option list uses the
+- **Expected**: Settings compact pickers use the shared anchored menu. Every
+ remaining closed native trigger and opened native option list uses the
active theme's readable foreground/background pairing. No dark-theme list
falls back to a light Windows surface with light text, no light-theme list
uses dark-theme ink, and changing theme updates subsequent openings. The
diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.md
index 833145822..61b122749 100644
--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md
+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md
@@ -43,8 +43,8 @@
### 常规
- **外观**卡:
- - **主题**:可搜索的选择行(与语言相同的锚定菜单)。触发器填满设置控件列,显示当前名称。菜单把系统、浅色、深色钉在顶部,插件主题在分隔线之后列出,并带「由…提供」提示。搜索匹配名称、描述、id 和插件 id。选择更新 `settings.theme`。
- - **语言**:可搜索的选择行(不是卡片网格)。触发器填满设置控件列,显示当前语言的本地名称,或「跟随系统」。菜单把「跟随系统」钉在顶部并内嵌显示检测到的语言(例如「当前:简体中文」),然后按本地名称(永不翻译的 endonym)和英文名称列出每个已发布语言,供搜索和排序。选择更新 `settings.language`。新增语言只需加一份目录和一行注册表;选择器不硬编码选项列表。
+ - **主题**:可搜索的选择行(与语言相同的锚定菜单)。关闭时的触发器按当前文案收缩,不超过设置控件列,并显示当前名称。菜单把系统、浅色、深色钉在顶部,插件主题在分隔线之后列出,并带「由…提供」提示。搜索匹配名称、描述、id 和插件 id。选择更新 `settings.theme`。
+ - **语言**:可搜索的选择行(不是卡片网格)。关闭时的触发器按当前文案收缩,不超过设置控件列,显示当前语言的本地名称,或「跟随系统」。菜单把「跟随系统」钉在顶部并内嵌显示检测到的语言(例如「当前:简体中文」),然后按本地名称(永不翻译的 endonym)和英文名称列出每个已发布语言,供搜索和排序。选择更新 `settings.language`。新增语言只需加一份目录和一行注册表;选择器不硬编码选项列表。
- **字体**:可搜索的选择行(触发器以该字体的字样显示当前字体)
提供系统默认、内置开源字体(Geist、Inter、Noto Sans SC、
LXGW WenKai——SIL OFL 1.1,本地发布)以及由 Electron 主进程枚举的
@@ -73,7 +73,7 @@
- **权限**卡:全局权限模式控制
(询问/接受编辑/自动)控制代理如何自主行动。该控件是共享锚定菜单表面上的
菜单选择器,而不是由平台绘制的 `<select>` 弹层,因此设置里的每个选择器
- 都以相同方式展开。
+ 都以相同方式展开。关闭时的触发器按当前文案收缩,不超过设置控件列。
- **默认项**卡:主机支持的默认运行模式(Agent / Plan / Goal)、
命令 Shell 选择、链接打开目标、上下文用量显示(剩余或已用)、
回车发送控制和大段文本粘贴阈值。链接打开目标默认使用工作面板浏览器,
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index 1e95a23ab..18d471636 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -996,7 +996,7 @@ unit/integration 测试;代码 pull request 使用有选择且高价值的 E2E
4) 打开语言行的可搜索选择器。确认「跟随系统」钉在顶部并显示检测到的本地名称,且列表按本地名称列出 English、简体中文、繁體中文、Türkçe、Deutsch、Español、Français。操作系统为简体中文时选择「跟随系统」会应用简体中文;切换为繁体中文系统时会应用繁体中文。
5) 依次选择 English、简体中文、繁體中文、Türkçe、Deutsch、Español 和 Français,确认外壳文案无需重新加载即可切换。确认 `zh-Hant` 和 `zh-HK` 解析为繁体中文,`de-DE` 解析为 Deutsch,`es-MX` 解析为 Español,`fr-CA` 解析为 Français。
6) 在语言搜索中输入本地名称或英文名称,确认不匹配的语言消失。在主题搜索中输入主题名称,确认不匹配的选项消失。
-- **预期**:主题和语言都是可搜索的选择行(不是卡片网格,也不是原生 select);关闭时的触发器填满设置控件列且不溢出该行。主题列出系统、浅色、深色,插件主题在分隔线之后。「跟随系统」通过主进程 (`app.getLocale()`) 解析操作系统区域设置,安全地通过沙盒 preload 桥传递,并在菜单内嵌显示检测到的本地名称;zh-TW、土耳其语、德语、西班牙语和法语都是包含发版日志文案在内的完整外壳目录;切换选项会立即更新 UI,无需重新加载。
+- **预期**:主题和语言都是可搜索的选择行(不是卡片网格,也不是原生 select);关闭时的触发器按当前文案收缩、不超过设置控件列且不溢出该行。主题列出系统、浅色、深色,插件主题在分隔线之后。「跟随系统」通过主进程 (`app.getLocale()`) 解析操作系统区域设置,安全地通过沙盒 preload 桥传递,并在菜单内嵌显示检测到的本地名称;zh-TW、土耳其语、德语、西班牙语和法语都是包含发版日志文案在内的完整外壳目录;切换选项会立即更新 UI,无需重新加载。
- **链接规格**:`04-ux/06-settings-ia.md`、`04-ux/02-i18n-english-first.md`
- **验收**:A(核心壳)、H(本地化)
- **里程碑**:M4
@@ -1012,7 +1012,7 @@ unit/integration 测试;代码 pull request 使用有选择且高价值的 E2E
4) 展开默认项卡的命令 Shell 控件;查看不可用条目并选择一个可用的 Shell。
5) 先用 Escape、再用外部点击分别关闭打开的菜单。
6) 关闭设置后重新打开,读取这两行。
-- **预期**:两行都展开与外观选择器相同的锚定菜单表面 —— 应用绘制的边框,使用共享的圆角、阴影、描边和主题 token,当前选项带勾选标记,并有悬浮/键盘高亮 —— 而不是平台绘制的 `<select>` 弹层。不可用的 Shell 仍会列出并带后缀,不可选择,也不会成为当前值。Escape 和外部点击都会关闭菜单并把焦点还给触发器;方向键在可选选项之间循环移动。所选权限模式和命令 Shell 在关闭并重新打开设置后保持,且选定的 Shell 仍是唯一的配置状态提示。
+- **预期**:两行都展开与外观选择器相同的锚定菜单表面 —— 应用绘制的边框,使用共享的圆角、阴影、描边和主题 token,当前选项带勾选标记,并有悬浮/键盘高亮 —— 而不是平台绘制的 `<select>` 弹层。关闭时的触发器按当前文案收缩,不超过设置控件列。不可用的 Shell 仍会列出并带后缀,不可选择,也不会成为当前值。Escape 和外部点击都会关闭菜单并把焦点还给触发器;方向键在可选选项之间循环移动。所选权限模式和命令 Shell 在关闭并重新打开设置后保持,且选定的 Shell 仍是唯一的配置状态提示。
- **链接规格**:`04-ux/06-settings-ia.md`、`04-ux/09-interaction-patterns.md`
- **验收**:A(核心壳)
- **里程碑**:M4
@@ -2886,15 +2886,8 @@ PI-Desktop 图标;两个表面都不会暴露库存 Electron 名称或图标
- **先决条件**:PI-Desktop 在 Windows 上运行,有光和暗
可用的主题。
-- **步骤**:1)在浅色主题中,在“设置”→“基础”中打开本机选择,
- 设置 → 模型配置、设置 → 导入和一项计划任务
- 形式。 2)以深色主题重复每个表面。 3)之后打开每个列表
- 无需重新启动应用程序即可切换主题。
-- **预期**:每个关闭的触发器和打开的本机选项列表都使用
- 活动主题的可读 foreground/background 配对。没有黑暗主题列表
- 退回到带有浅色文本的浅色 Windows 表面,没有浅色主题列表
- 使用深色主题墨水,更改主题会更新后续空缺。的
- 同样的结果适用于本机选择外部设置。
+- **步骤**:1)在浅色主题中,打开仍存在的本机选择(计划任务表单),并确认设置里的常规、全局 AI、模型配置和导入选择器都是应用内菜单而不是平台 `<select>`。2)以深色主题重复剩余本机列表。3)切换主题后无需重启即可再次打开每个列表。
+- **预期**:设置里的紧凑选择器使用共享锚定菜单。每个仍存在的关闭本机触发器和打开的本机选项列表都使用活动主题的可读 foreground/background 配对。没有黑暗主题列表退回到带有浅色文本的浅色 Windows 表面,没有浅色主题列表使用深色主题墨水,更改主题会更新后续打开。同样的结果适用于设置之外的本机选择。
- **链接规格**:`04-ux/06-settings-ia.md`,
`04-ux/07-ui-design-system.md`
- **接受**:质量(跨平台主题可读性)