Dark theme for calling device selection
This commit is contained in:
parent
31c2fe56f4
commit
a9367f48f1
10 changed files with 70 additions and 36 deletions
20
ts/util/theme.ts
Normal file
20
ts/util/theme.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { missingCaseError } from './missingCaseError';
|
||||
|
||||
export enum Theme {
|
||||
Light,
|
||||
Dark,
|
||||
}
|
||||
|
||||
export function themeClassName(theme: Theme): string {
|
||||
switch (theme) {
|
||||
case Theme.Light:
|
||||
return 'light-theme';
|
||||
case Theme.Dark:
|
||||
return 'dark-theme';
|
||||
default:
|
||||
throw missingCaseError(theme);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue