lightswitch: Add setting

Add the option to enable touching the widget only on clock and settings + change default timeout to 2s.
pull/1336/head
storm64 2022-01-21 20:10:58 +01:00 committed by GitHub
parent 963697575c
commit ebe6bf620a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
unlockSide: "",
tapSide: "right",
tapOn: "always",
tOut: 3000,
tOut: 2000,
minFlash: 0.2
}, storage.readJSON(filename, true) || {});
var images = storage.readJSON(filename.replace(".", ".images."), true) || false;
@ -88,8 +88,8 @@
}
},
touchOn: {
title: ["on def clk", "on all clk", "clk+launch", "always on"],
value: ["", "clock", "clock,launch", "always"],
title: ["on def clk", "on all clk", "clk+launch", "clk+setting", "except apps", "always on"],
value: ["", "clock", "clock,setting.app.js", "clock,launch", "clock,setting.app.js,launch", "always"],
drawWidgets: true
},
dragDelay: {