[Launcher] Add new "fullscreen" option

pull/1718/head
Alessandro Cocco 2022-04-18 22:05:07 +02:00
parent 2e5f198d66
commit 7afa90710f
1 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,9 @@
// make sure to enclose the function in parentheses
(function(back) {
let settings = Object.assign({ showClocks: true }, require("Storage").readJSON("launch.json", true) || {});
let settings = Object.assign({
showClocks: true,
fullscreen: false
}, require("Storage").readJSON("launch.json", true) || {});
let fonts = g.getFonts();
function save(key, value) {
@ -24,7 +27,12 @@
/*LANG*/"Show Clocks": {
value: settings.showClocks == true,
format: v => v ? /*LANG*/"Yes" : /*LANG*/"No",
onchange: (m) => {save("showClocks", m)}
onchange: (m) => { save("showClocks", m) }
},
/*LANG*/"Fullscreen": {
value: settings.fullscreen == true,
format: v => v ? /*LANG*/"Yes" : /*LANG*/"No",
onchange: (m) => { save("fullscreen", m) }
}
};
E.showMenu(appMenu);