mirror of https://github.com/espruino/BangleApps
settings: Add some Bangle 1 colours to theme customizer
orange, purple and grey seemed distinct enough to be nice additionspull/1755/head
parent
0b08f84293
commit
ff0dac7e33
|
@ -45,3 +45,4 @@
|
|||
0.40: Moved off into Utils, put System after Apps
|
||||
0.41: Stop users disabling all wake-up methods and locking themselves out (fix #1272)
|
||||
0.42: Fix theme customizer on new Bangle 2 firmware
|
||||
0.43: Add some Bangle 1 colours to theme customizer
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "setting",
|
||||
"name": "Settings",
|
||||
"version": "0.42",
|
||||
"version": "0.43",
|
||||
"description": "A menu for setting up Bangle.js",
|
||||
"icon": "settings.png",
|
||||
"tags": "tool,system",
|
||||
|
|
|
@ -251,11 +251,15 @@ function showThemeMenu() {
|
|||
}
|
||||
upd(th);
|
||||
}
|
||||
const rgb = {
|
||||
let rgb = {
|
||||
black: "#000", white: "#fff",
|
||||
red: "#f00", green: "#0f0", blue: "#00f",
|
||||
cyan: "#0ff", magenta: "#f0f", yellow: "#ff0",
|
||||
};
|
||||
if (!BANGLEJS2) Object.assign(rgb, {
|
||||
// these would cause dithering, which is not great for e.g. text
|
||||
orange: "#ff7f00", purple: "#7f00ff", grey: "#7f7f7f",
|
||||
});
|
||||
let colors = [], names = [];
|
||||
for(const c in rgb) {
|
||||
names.push(c);
|
||||
|
|
Loading…
Reference in New Issue