initial commit
This commit is contained in:
22
source/wfBackground.mc
Normal file
22
source/wfBackground.mc
Normal file
@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user