BangleApps/typescript/types/settings.d.ts

54 lines
850 B
TypeScript
Raw Normal View History

2023-05-08 12:04:30 +00:00
type Settings = {
beep: boolean,
vibrate: boolean,
quiet: number,
ble: boolean,
blerepl: boolean,
2024-06-16 16:23:11 +00:00
bleprivacy?: NRFSecurityStatus["privacy"],
blename?: boolean,
2023-05-08 12:04:30 +00:00
HID?: false | "kbmedia" | "kb" | "com" | "joy",
passkey?: string,
whitelist_disabled?: boolean,
whitelist: string[],
theme: Theme,
brightness: number,
timeout: number,
rotate: number,
options: SettingsOptions,
timezone: number,
log: number,
clock: string,
clockHasWidgets: boolean,
launcher: string,
};
type SettingsTheme = {
fg: string,
bg: string,
fg2: string,
bg2: string,
fgH: string,
bgH: string,
dark: boolean,
};
type SettingsOptions = {
wakeOnBTN1: boolean,
wakeOnBTN2: boolean,
wakeOnBTN3: boolean,
wakeOnFaceUp: boolean,
wakeOnTouch: boolean,
wakeOnTwist: boolean,
twistThreshold: number,
twistMaxY: number,
twistTimeout: number,
};