mirror of
https://github.com/heyman/heynote.git
synced 2024-12-01 12:23:33 +01:00
924fd4b226
Add Settings dialog. Started implementing Emacs-like keymap.
22 lines
522 B
JavaScript
22 lines
522 B
JavaScript
import Store from "electron-store"
|
|
|
|
const schema = {
|
|
additionalProperties: false,
|
|
|
|
windowConfig: {
|
|
type: "object",
|
|
properties: {
|
|
width: {type: "number"},
|
|
height: {type: "number"},
|
|
x: {type: "number"},
|
|
y: {type: "number"},
|
|
isMaximized: {type: "boolean"},
|
|
isFullScreen: {type: "boolean"},
|
|
},
|
|
additionalProperties: false,
|
|
},
|
|
keymap: { "enum": ["default", "emacs"] },
|
|
}
|
|
|
|
export default new Store({schema})
|