diff --git a/apps/bwclk/ChangeLog b/apps/bwclk/ChangeLog index a5458d2da..191bb51e5 100644 --- a/apps/bwclk/ChangeLog +++ b/apps/bwclk/ChangeLog @@ -32,3 +32,4 @@ clkinfo.addInteractive that would cause ReferenceError. 0.30: Use widget_utils 0.31: Use clock_info module as an app 0.32: Make the border of the clock_info box extend all the way to the right of the screen. +0.33: Fix issue rendering ClockInfos with for fg+bg color set to the same (#2749) \ No newline at end of file diff --git a/apps/bwclk/app.js b/apps/bwclk/app.js index 359baebae..fdb82df73 100644 --- a/apps/bwclk/app.js +++ b/apps/bwclk/app.js @@ -140,11 +140,8 @@ let clockInfoMenu = clock_info.addInteractive(clockInfoItems, { draw : (itm, info, options) => { var hideClkInfo = info.text == null; - g.setColor(g.theme.fg); - g.fillRect(options.x, options.y, options.x+options.w, options.y+options.h); - - g.setFontAlign(0,0); - g.setColor(g.theme.bg); + g.reset().setBgColor(g.theme.fg).clearRect(options.x, options.y, options.x+options.w, options.y+options.h); + g.setFontAlign(0,0).setColor(g.theme.bg); if (options.focus){ var y = hideClkInfo ? options.y+20 : options.y+2; diff --git a/apps/bwclk/metadata.json b/apps/bwclk/metadata.json index 6b8230555..fba759bf0 100644 --- a/apps/bwclk/metadata.json +++ b/apps/bwclk/metadata.json @@ -1,7 +1,7 @@ { "id": "bwclk", "name": "BW Clock", - "version": "0.32", + "version": "0.33", "description": "A very minimalistic clock.", "readme": "README.md", "icon": "app.png", diff --git a/apps/bwclklite/ChangeLog b/apps/bwclklite/ChangeLog index eca453be0..c68c62edc 100644 --- a/apps/bwclklite/ChangeLog +++ b/apps/bwclklite/ChangeLog @@ -35,3 +35,4 @@ clkinfo.addInteractive that would cause ReferenceError. Remove invertion of theme as this doesn'twork very well with fastloading. Do an quick inital fillRect on theclock info area. 0.33: Make the border of the clock_info box extend all the way to the right of the screen. +0.34: Fix issue rendering ClockInfos with for fg+bg color set to the same (#2749) \ No newline at end of file diff --git a/apps/bwclklite/app.js b/apps/bwclklite/app.js index 697776ea0..05f61ec58 100644 --- a/apps/bwclklite/app.js +++ b/apps/bwclklite/app.js @@ -100,11 +100,8 @@ let clockInfoMenu = clock_info.addInteractive(clockInfoItems, { draw : (itm, info, options) => { let hideClkInfo = info.text == null; - g.setColor(g.theme.fg); - g.fillRect(options.x, options.y, options.x+options.w, options.y+options.h); - - g.setFontAlign(0,0); - g.setColor(g.theme.bg); + g.reset().setBgColor(g.theme.fg).clearRect(options.x, options.y, options.x+options.w, options.y+options.h); + g.setFontAlign(0,0).setColor(g.theme.bg); if (options.focus){ let y = hideClkInfo ? options.y+20 : options.y+2; diff --git a/apps/bwclklite/metadata.json b/apps/bwclklite/metadata.json index 8932274d4..b073f985e 100644 --- a/apps/bwclklite/metadata.json +++ b/apps/bwclklite/metadata.json @@ -1,7 +1,7 @@ { "id": "bwclklite", "name": "BW Clock Lite", - "version": "0.33", + "version": "0.34", "description": "A very minimalistic clock. This version of BW Clock is quicker at the cost of the custom font.", "readme": "README.md", "icon": "app.png",