Files
metube/ui/src/app/theme.ts
Robert Smits c64dda8ca7 Fix theme handling and auto theme
This commit fixes the client side theme selection being overwritten by the backend and adds a selectable auto theming option.
2023-10-01 18:23:11 +02:00

27 lines
499 B
TypeScript

import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import { faCircleHalfStroke, faMoon, faSun } from "@fortawesome/free-solid-svg-icons";
export interface Theme {
id: string;
displayName: string;
icon: IconDefinition;
}
export const Themes: Theme[] = [
{
id: 'light',
displayName: 'Light',
icon: faSun,
},
{
id: 'dark',
displayName: 'Dark',
icon: faMoon,
},
{
id: 'auto',
displayName: 'Auto',
icon: faCircleHalfStroke,
},
];