chore: palette locale

This commit is contained in:
dongchengjie 2024-05-13 23:12:29 +08:00
parent 8d510cde21
commit fb518b6218
4 changed files with 43 additions and 10 deletions

View File

@ -87,24 +87,24 @@ export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
onOk={onSave} onOk={onSave}
> >
<List sx={{ pt: 0 }}> <List sx={{ pt: 0 }}>
{renderItem("Primary Color", "primary_color")} {renderItem(t("Primary Color"), "primary_color")}
{renderItem("Secondary Color", "secondary_color")} {renderItem(t("Secondary Color"), "secondary_color")}
{renderItem("Primary Text", "primary_text")} {renderItem(t("Primary Text"), "primary_text")}
{renderItem("Secondary Text", "secondary_text")} {renderItem(t("Secondary Text"), "secondary_text")}
{renderItem("Info Color", "info_color")} {renderItem(t("Info Color"), "info_color")}
{renderItem("Error Color", "error_color")} {renderItem(t("Warning Color"), "warning_color")}
{renderItem("Warning Color", "warning_color")} {renderItem(t("Error Color"), "error_color")}
{renderItem("Success Color", "success_color")} {renderItem(t("Success Color"), "success_color")}
<Item> <Item>
<ListItemText primary="Font Family" /> <ListItemText primary={t("Font Family")} />
<TextField <TextField
{...textProps} {...textProps}
value={theme.font_family ?? ""} value={theme.font_family ?? ""}
@ -113,7 +113,7 @@ export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
/> />
</Item> </Item>
<Item> <Item>
<ListItemText primary="CSS Injection" /> <ListItemText primary={t("CSS Injection")} />
<Button <Button
startIcon={<Edit />} startIcon={<Edit />}
variant="outlined" variant="outlined"

View File

@ -145,6 +145,17 @@
"Restart": "Restart", "Restart": "Restart",
"Upgrade": "Upgrade", "Upgrade": "Upgrade",
"Primary Color": "Primary Color",
"Secondary Color": "Secondary Color",
"Primary Text": "Primary Text",
"Secondary Text": "Secondary Text",
"Info Color": "Info Color",
"Warning Color": "Warning Color",
"Error Color": "Error Color",
"Success Color": "Success Color",
"Font Family": "Font Family",
"CSS Injection": "CSS Injection",
"Back": "Back", "Back": "Back",
"Save": "Save", "Save": "Save",
"Cancel": "Cancel", "Cancel": "Cancel",

View File

@ -145,6 +145,17 @@
"Restart": "Перезапуск", "Restart": "Перезапуск",
"Upgrade": "Обновлять", "Upgrade": "Обновлять",
"Primary Color": "Основной цвет",
"Secondary Color": "Вторичный цвет",
"Primary Text Color": "Основной текст",
"Secondary Text Color": "Вторичный текст",
"Info Color": "Информационный цвет",
"Warning Color": "Цвет предупреждения",
"Error Color": "Цвет ошибки",
"Success Color": "Цвет успеха",
"Font Family": "Семейство шрифтов",
"CSS Injection": "Внедрение CSS",
"Back": "Назад", "Back": "Назад",
"Save": "Сохранить", "Save": "Сохранить",
"Cancel": "Отмена", "Cancel": "Отмена",

View File

@ -145,6 +145,17 @@
"Restart": "重启内核", "Restart": "重启内核",
"Upgrade": "升级内核", "Upgrade": "升级内核",
"Primary Color": "主要颜色",
"Secondary Color": "次要颜色",
"Primary Text": "文本主要颜色",
"Secondary Text": "文本次要颜色",
"Info Color": "信息颜色",
"Warning Color": "警告颜色",
"Error Color": "错误颜色",
"Success Color": "成功颜色",
"Font Family": "字体系列",
"CSS Injection": "CSS 注入",
"Back": "返回", "Back": "返回",
"Save": "保存", "Save": "保存",
"Cancel": "取消", "Cancel": "取消",