mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-20 13:28:37 +00:00
Change bg color for error and root view
This commit is contained in:
@ -65,11 +65,10 @@ class ErrorView extends ScalableView {
|
|||||||
function onUpdate(dc as Graphics.Dc) as Void {
|
function onUpdate(dc as Graphics.Dc) as Void {
|
||||||
var w = dc.getWidth();
|
var w = dc.getWidth();
|
||||||
var hw = w/2;
|
var hw = w/2;
|
||||||
var bg = 0x3B444C;
|
|
||||||
if(dc has :setAntiAlias) {
|
if(dc has :setAntiAlias) {
|
||||||
dc.setAntiAlias(true);
|
dc.setAntiAlias(true);
|
||||||
}
|
}
|
||||||
dc.setColor(Graphics.COLOR_WHITE, bg);
|
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLUE);
|
||||||
dc.clear();
|
dc.clear();
|
||||||
dc.drawBitmap(hw - mErrorIcon.getWidth()/2, mErrorIconMargin, mErrorIcon);
|
dc.drawBitmap(hw - mErrorIcon.getWidth()/2, mErrorIconMargin, mErrorIcon);
|
||||||
mTextArea.draw(dc);
|
mTextArea.draw(dc);
|
||||||
|
@ -84,11 +84,10 @@ class RootView extends ScalableView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onUpdate(dc as Graphics.Dc) as Void {
|
function onUpdate(dc as Graphics.Dc) as Void {
|
||||||
var bg = 0x3B444C;
|
|
||||||
if(dc has :setAntiAlias) {
|
if(dc has :setAntiAlias) {
|
||||||
dc.setAntiAlias(true);
|
dc.setAntiAlias(true);
|
||||||
}
|
}
|
||||||
dc.setColor(Graphics.COLOR_WHITE, bg);
|
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLACK);
|
||||||
dc.clear();
|
dc.clear();
|
||||||
|
|
||||||
if(mApp.homeAssistantMenuIsLoaded()) {
|
if(mApp.homeAssistantMenuIsLoaded()) {
|
||||||
|
Reference in New Issue
Block a user