Add zero brightness for LCD brightness

master
RKBoss6 2025-07-10 21:33:51 -04:00 committed by GitHub
parent ef5ae344d8
commit 528b0f8add
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 15 deletions

View File

@ -326,20 +326,24 @@ function showThemeMenu(pop) {
upd(th); upd(th);
} }
let rgb = {}; let rgb = {};
rgb[/*LANG*/'black'] = "#000"; rgb[/*LANG*/'Black'] = "#000";
rgb[/*LANG*/'white'] = "#fff"; rgb[/*LANG*/'White'] = "#fff";
rgb[/*LANG*/'red'] = "#f00"; rgb[/*LANG*/'Red'] = "#f00";
rgb[/*LANG*/'green'] = "#0f0"; rgb[/*LANG*/'Green'] = "#0f0";
rgb[/*LANG*/'blue'] = "#00f"; rgb[/*LANG*/'Blue'] = "#00f";
rgb[/*LANG*/'cyan'] = "#0ff"; rgb[/*LANG*/'Cyan'] = "#0ff";
rgb[/*LANG*/'magenta'] = "#f0f"; rgb[/*LANG*/'Magenta'] = "#f0f";
rgb[/*LANG*/'yellow'] = "#ff0"; rgb[/*LANG*/'Yellow'] = "#ff0";
if (!BANGLEJS2) {
// these would cause dithering, which is not great for e.g. text // These would cause dithering, which is not great for e.g. text
rgb[/*LANG*/'orange'] = "#ff7f00"; rgb[/*LANG*/'Orange'] = "#ff7f00";
rgb[/*LANG*/'purple'] = "#7f00ff"; rgb[/*LANG*/'Purple'] = "#7f00ff";
rgb[/*LANG*/'grey'] = "#7f7f7f"; rgb[/*LANG*/'Grey'] = "#7f7f7f";
} rgb[/*LANG*/'Maroon'] = "#3e1363";
rgb[/*LANG*/'Indigo'] = "#3e1363";
rgb[/*LANG*/'Dark Green'] = "#0e5c13";
rgb[/*LANG*/'Navy'] = "#121e75";
let colors = [], names = []; let colors = [], names = [];
for(const c in rgb) { for(const c in rgb) {
names.push(c); names.push(c);