mirror of
https://github.com/dyuri/garmin-repafield.git
synced 2025-12-16 19:24:01 +00:00
29 lines
561 B
MonkeyC
29 lines
561 B
MonkeyC
import Toybox.Application;
|
|
import Toybox.Graphics;
|
|
import Toybox.WatchUi;
|
|
|
|
class Background extends WatchUi.Drawable {
|
|
|
|
hidden var mColor as ColorValue;
|
|
|
|
function initialize() {
|
|
var dictionary = {
|
|
:identifier => "Background"
|
|
};
|
|
|
|
Drawable.initialize(dictionary);
|
|
|
|
mColor = Graphics.COLOR_BLACK;
|
|
}
|
|
|
|
function setColor(color as ColorValue) as Void {
|
|
mColor = color;
|
|
}
|
|
|
|
function draw(dc as Dc) as Void {
|
|
dc.setColor(Graphics.COLOR_TRANSPARENT, mColor);
|
|
dc.clear();
|
|
}
|
|
|
|
}
|