mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
titlebar switching
This commit is contained in:
parent
f0f2f54e5a
commit
33972c2a83
4 changed files with 37 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue