23 lines
528 B
MonkeyC
23 lines
528 B
MonkeyC
import Toybox.Application;
|
|
import Toybox.Graphics;
|
|
import Toybox.Lang;
|
|
import Toybox.WatchUi;
|
|
|
|
class Background extends WatchUi.Drawable {
|
|
|
|
function initialize() {
|
|
var dictionary = {
|
|
:identifier => "Background"
|
|
};
|
|
|
|
Drawable.initialize(dictionary);
|
|
}
|
|
|
|
function draw(dc as Dc) as Void {
|
|
// Set the background color then call to clear the screen
|
|
dc.setColor(Graphics.COLOR_TRANSPARENT, getApp().getProperty("BackgroundColor") as Number);
|
|
dc.clear();
|
|
}
|
|
|
|
}
|