Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings_config: Add type ColorSchemeDetails.

Varun Singhdf395e99ebf8
diff --git a/web/src/settings_config.ts b/web/src/settings_config.ts
index 66a96c0b3c0..b5d87c6a18d 100644
--- a/web/src/settings_config.ts
+++ b/web/src/settings_config.ts
@@ -129,6 +129,14 @@ export const web_home_view_values = {
},
};
+type ColorScheme = "automatic" | "dark" | "light";
+export type ColorSchemeDetails = {
+ [key in ColorScheme]: {
+ code: number;
+ description: string;
+ };
+};
+
export const color_scheme_values = {
automatic: {
code: 1,