mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Add discord rich presence (#72)
This commit is contained in:
parent
2664a80851
commit
244c00c4c6
12 changed files with 391 additions and 7 deletions
|
|
@ -112,6 +112,13 @@ export enum BindingActions {
|
|||
}
|
||||
|
||||
export interface SettingsState {
|
||||
discord: {
|
||||
clientId: string;
|
||||
enableIdle: boolean;
|
||||
enabled: boolean;
|
||||
showServerImage: boolean;
|
||||
updateInterval: number;
|
||||
};
|
||||
font: {
|
||||
builtIn: string;
|
||||
custom: string | null;
|
||||
|
|
@ -216,6 +223,13 @@ const getPlatformDefaultWindowBarStyle = (): Platform => {
|
|||
const platformDefaultWindowBarStyle: Platform = getPlatformDefaultWindowBarStyle();
|
||||
|
||||
const initialState: SettingsState = {
|
||||
discord: {
|
||||
clientId: '1165957668758900787',
|
||||
enableIdle: false,
|
||||
enabled: false,
|
||||
showServerImage: false,
|
||||
updateInterval: 15,
|
||||
},
|
||||
font: {
|
||||
builtIn: 'Inter',
|
||||
custom: null,
|
||||
|
|
@ -558,3 +572,5 @@ export const useLyricsSettings = () => useSettingsStore((state) => state.lyrics,
|
|||
export const useRemoteSettings = () => useSettingsStore((state) => state.remote, shallow);
|
||||
|
||||
export const useFontSettings = () => useSettingsStore((state) => state.font, shallow);
|
||||
|
||||
export const useDiscordSetttings = () => useSettingsStore((state) => state.discord, shallow);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue