gallery: Do not invert image colors

pull/2358/head
Erik Andresen 2022-12-05 21:34:20 +01:00
parent 92efe31a4b
commit d06e4c5a5e
3 changed files with 6 additions and 5 deletions

View File

@ -1,2 +1,3 @@
0.01: New app!
0.02: Submitted to app loader
0.02: Submitted to app loader
0.03: Do not invert colors

View File

@ -35,7 +35,7 @@ function drawImage(fileName) {
Bangle.setLCDBrightness(1); // Full brightness
image = eval(storage.read(fileName)); // Sadly, the only reasonable way to do this
g.clear().reset().drawImage(image, 88, 88, { rotate: angle });
g.clear().reset().setBgColor(0).setColor("#fff").drawImage(image, 88, 88, { rotate: angle });
}
setWatch(info => {
@ -44,9 +44,9 @@ setWatch(info => {
else angle = 0;
Bangle.buzz();
g.clear().reset().drawImage(image, 88, 88, { rotate: angle })
g.clear().reset().setBgColor(0).setColor("#fff").drawImage(image, 88, 88, { rotate: angle })
}
}, BTN1, { repeat: true });
// We don't load the widgets because there is no reasonable way to unload them
drawMenu();
drawMenu();

View File

@ -1,7 +1,7 @@
{
"id": "gallery",
"name": "Gallery",
"version": "0.02",
"version": "0.03",
"description": "A gallery that lets you view images uploaded with the IDE (see README)",
"readme": "README.md",
"icon": "icon.png",