Files
wf/source/wfBackground.mc
2025-10-09 16:40:07 +03:00

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();
}
}