Subscribe to native theme changes
This commit is contained in:
parent
bb457dd086
commit
795fb9ee0f
|
@ -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
|
||||
|
|
|
@ -166,6 +166,8 @@ declare global {
|
|||
|
||||
WhatIsThis: WhatIsThis;
|
||||
|
||||
subscribeToSystemThemeChange: (fn: () => void) => void;
|
||||
|
||||
registerScreenShareControllerRenderer: (
|
||||
f: (
|
||||
component: typeof CallingScreenSharingController,
|
||||
|
|
Loading…
Reference in New Issue