signal-desktop/ts/shims/themeChanged.ts

12 lines
331 B
TypeScript
Raw Normal View History

2022-07-13 00:37:21 +00:00
// Copyright 2021-2022 Signal Messenger, LLC
2021-08-18 20:08:14 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2022-07-13 00:37:21 +00:00
import { getThemeType } from '../util/getThemeType';
2021-08-18 20:08:14 +00:00
export function themeChanged(): void {
if (window.reduxActions && window.reduxActions.user) {
2022-07-13 00:37:21 +00:00
const theme = getThemeType();
window.reduxActions.user.userChanged({ theme });
2021-08-18 20:08:14 +00:00
}
}