mirror of
https://github.com/heyman/heynote.git
synced 2024-11-28 19:03:45 +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})
|