blob: 51bad2950afebc34847a0a498b4cf13dcd3bf213 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {SkColor} from 'chrome://resources/mojo/skia/public/mojom/skcolor.mojom-webui.js';
import {ColorScheme} from '../personalization_app.mojom-webui.js';
/**
* Stores theme related states.
*/
export interface ThemeState {
colorModeAutoScheduleEnabled: boolean|null;
colorSchemeSelected: ColorScheme|null;
darkModeEnabled: boolean|null;
staticColorSelected: SkColor|null;
}
export function emptyState(): ThemeState {
return {
colorModeAutoScheduleEnabled: null,
colorSchemeSelected: null,
darkModeEnabled: null,
staticColorSelected: null,
};
}