mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 09:58:12 +01:00
Make explicit storage item preserve/remove behavior on unlink
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { z } from 'zod';
|
||||
import { missingCaseError } from './missingCaseError.std.js';
|
||||
import { ThemeType } from '../types/Util.std.js';
|
||||
|
||||
@@ -9,6 +10,9 @@ export enum Theme {
|
||||
Dark,
|
||||
}
|
||||
|
||||
export const themeSettingSchema = z.enum(['system', 'light', 'dark']);
|
||||
export type ThemeSettingType = z.infer<typeof themeSettingSchema>;
|
||||
|
||||
export function themeClassName(theme: Theme): string {
|
||||
switch (theme) {
|
||||
case Theme.Light:
|
||||
|
||||
Reference in New Issue
Block a user