mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Design tab: one theme dropdown for built-in and custom designs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
6e2278498c
commit
2e6b295185
6 files changed
+16
-26
No files matched your search
+11
-16
@@ -6383,13 +6383,22 @@ function DesignPanel({
|
||||
<fieldset className="ts-options-fieldset">
|
||||
<legend>{t("options.section.design")}</legend>
|
||||
<label className="ts-options-field">
|
||||
{t("design.style")}
|
||||
<select value={base} onChange={(e) => onSelectionChange(e.target.value)}>
|
||||
{t("design.theme")}
|
||||
<select value={designSelection} onChange={(e) => onSelectionChange(e.target.value)}>
|
||||
{builtins.map((th) => (
|
||||
<option key={th.id} value={th.id}>
|
||||
{th.name}
|
||||
</option>
|
||||
))}
|
||||
{customThemes.length > 0 && (
|
||||
<optgroup label={t("design.customThemes")}>
|
||||
{customThemes.map((theme) => (
|
||||
<option key={theme.id} value={`custom:${theme.id}`}>
|
||||
{theme.name}
|
||||
</option>
|
||||
))}
|
||||
</optgroup>
|
||||
)}
|
||||
</select>
|
||||
</label>
|
||||
{base === "ide" && (
|
||||
@@ -6398,20 +6407,6 @@ function DesignPanel({
|
||||
{t("design.idePixelFont")}
|
||||
</label>
|
||||
)}
|
||||
<label className="ts-options-field">
|
||||
{t("design.theme")}
|
||||
<select
|
||||
value={designSelection.startsWith("custom:") ? designSelection : ""}
|
||||
onChange={(e) => onSelectionChange(e.target.value || base)}
|
||||
>
|
||||
<option value="">{t("design.none")}</option>
|
||||
{customThemes.map((theme) => (
|
||||
<option key={theme.id} value={`custom:${theme.id}`}>
|
||||
{theme.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<label className="ts-options-field">
|
||||
{t("design.iconPack")}
|
||||
<select value={prefs.iconPackId} onChange={(e) => prefs.setIconPackId(e.target.value)}>
|
||||
|
||||
Reference in new issue
Block a user