mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Subscribe to native theme changes
This commit is contained in:
@@ -2284,6 +2284,10 @@ export async function startApp(): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
window.subscribeToSystemThemeChange(() => {
|
||||
onChangeTheme();
|
||||
});
|
||||
|
||||
const FIVE_MINUTES = 5 * 60 * 1000;
|
||||
|
||||
// Note: once this function returns, there still might be messages being processed on
|
||||
|
||||
2
ts/window.d.ts
vendored
2
ts/window.d.ts
vendored
@@ -166,6 +166,8 @@ declare global {
|
||||
|
||||
WhatIsThis: WhatIsThis;
|
||||
|
||||
subscribeToSystemThemeChange: (fn: () => void) => void;
|
||||
|
||||
registerScreenShareControllerRenderer: (
|
||||
f: (
|
||||
component: typeof CallingScreenSharingController,
|
||||
|
||||
Reference in New Issue
Block a user