feat: support css injection

This commit is contained in:
GyDi committed 2022-04-01 02:08:42 +08:00
1 parent 42c570a6e2
commit c93cbb614d
4 files changed
+20 -6

No files matched your search

+4 -3
View File
@@ -65,6 +65,7 @@ const SettingTheme = (props: Props) => {
try {
await patchVergeConfig({ theme_setting: theme });
mutate();
onClose();
} catch (err: any) {
onError?.(err);
}
@@ -186,12 +187,12 @@ const SettingTheme = (props: Props) => {
</Item>
<Item>
<ListItemText primary="Font Face" />
<ListItemText primary="CSS Injection" />
<TextField
{...textProps}
value={theme.font_face ?? ""}
onChange={handleChange("font_face")}
value={theme.css_injection ?? ""}
onChange={handleChange("css_injection")}
/>
</Item>
</List>