messagesoverlay - Fix font color for title and source in low mem theme
parent
907cc5c35b
commit
403892ef2d
|
|
@ -126,6 +126,10 @@ const roundedRect = function(x,y,w,h,filled){
|
||||||
const DIVIDER = 38;
|
const DIVIDER = 38;
|
||||||
|
|
||||||
const drawScreen = function(title, src, iconcolor, icon){
|
const drawScreen = function(title, src, iconcolor, icon){
|
||||||
|
setColors(false);
|
||||||
|
|
||||||
|
drawBorder();
|
||||||
|
|
||||||
setColors(true);
|
setColors(true);
|
||||||
ovr.clearRect(2,2,ovr.getWidth()-3, DIVIDER - 1);
|
ovr.clearRect(2,2,ovr.getWidth()-3, DIVIDER - 1);
|
||||||
|
|
||||||
|
|
@ -136,8 +140,6 @@ const drawScreen = function(title, src, iconcolor, icon){
|
||||||
|
|
||||||
const w = ovr.getWidth() - 35 - 26;
|
const w = ovr.getWidth() - 35 - 26;
|
||||||
|
|
||||||
drawBorder();
|
|
||||||
|
|
||||||
if (title)
|
if (title)
|
||||||
drawTitle(title, textCenter, w, 8, DIVIDER - 8, 0);
|
drawTitle(title, textCenter, w, 8, DIVIDER - 8, 0);
|
||||||
|
|
||||||
|
|
@ -240,7 +242,6 @@ const showMessage = function(msg) {
|
||||||
|
|
||||||
const drawBorder = function() {
|
const drawBorder = function() {
|
||||||
LOG("drawBorder", isQuiet());
|
LOG("drawBorder", isQuiet());
|
||||||
setColors();
|
|
||||||
ovr.drawRect(0,0,ovr.getWidth()-1,ovr.getHeight()-1);
|
ovr.drawRect(0,0,ovr.getWidth()-1,ovr.getHeight()-1);
|
||||||
ovr.drawRect(1,1,ovr.getWidth()-2,ovr.getHeight()-2);
|
ovr.drawRect(1,1,ovr.getWidth()-2,ovr.getHeight()-2);
|
||||||
ovr.drawRect(2,DIVIDER,ovr.getWidth()-2,DIVIDER+1);
|
ovr.drawRect(2,DIVIDER,ovr.getWidth()-2,DIVIDER+1);
|
||||||
|
|
@ -739,7 +740,6 @@ exports.message = function(type, event) {
|
||||||
|
|
||||||
updateClearingTimeout();
|
updateClearingTimeout();
|
||||||
|
|
||||||
if (!isQuiet()) Bangle.setLCDPower(1);
|
|
||||||
event.handled = true;
|
event.handled = true;
|
||||||
g.flip();
|
g.flip();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue