titlebar switching

This commit is contained in:
Kendall Garner 2024-01-21 22:47:59 -08:00
parent f0f2f54e5a
commit 33972c2a83
No known key found for this signature in database
GPG key ID: 18D2767419676C87
4 changed files with 37 additions and 2 deletions

View file

@ -43,6 +43,10 @@ const fontError = (cb: (event: IpcRendererEvent, file: string) => void) => {
ipcRenderer.on('custom-font-error', cb);
};
const themeSet = (theme: 'dark' | 'light' | 'system'): void => {
ipcRenderer.send('theme-set', theme);
};
export const localSettings = {
disableMediaKeys,
enableMediaKeys,
@ -54,6 +58,7 @@ export const localSettings = {
restart,
set,
setZoomFactor,
themeSet,
};
export type LocalSettings = typeof localSettings;