Show dark theme based on OS preference
Introducing a new default mode - Auto. This will dynamically change
theme based on OS preferences. Mac OS has Auto mode, that switch
to dark mode in evening. With this change Gerrit can have dark theme
in evening and light them during day.
User can select Light or Dark theme in preferences. Then such theme is
not changed by OS preference.
Google-Bug-Id: b/205564309
Release-Notes: Introduce Auto Dark/Light Theme based on OS preference.
Change-Id: Icf9bd1313f0623916d4f338b611720948ea604da
diff --git a/polygerrit-ui/app/constants/constants.ts b/polygerrit-ui/app/constants/constants.ts
index 1394677..c8ce09e 100644
--- a/polygerrit-ui/app/constants/constants.ts
+++ b/polygerrit-ui/app/constants/constants.ts
@@ -172,6 +172,7 @@
* https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#preferences-input
*/
export enum AppTheme {
+ AUTO = 'AUTO',
DARK = 'DARK',
LIGHT = 'LIGHT',
}