feat: theme mode support follows system

This commit is contained in:
GyDi
2022-07-17 16:02:17 +08:00
parent 115e604627
commit 3d1b6d7de7
9 changed files with 97 additions and 43 deletions

View File

@@ -1,6 +1,11 @@
import { atom } from "recoil";
import { ApiType } from "./types";
export const atomThemeMode = atom<"light" | "dark">({
key: "atomThemeMode",
default: "light",
});
export const atomClashPort = atom<number>({
key: "atomClashPort",
default: 0,

View File

@@ -126,7 +126,7 @@ export namespace CmdType {
export interface VergeConfig {
language?: string;
clash_core?: string;
theme_mode?: "light" | "dark";
theme_mode?: "light" | "dark" | "system";
theme_blur?: boolean;
traffic_graph?: boolean;
enable_tun_mode?: boolean;