fenix (260x260) support

This commit is contained in:
2023-10-03 17:33:02 +02:00
parent d5fd70ef54
commit 3234078662
8 changed files with 79 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class HeartRate extends WatchUi.Drawable {
}
function draw(dc as Dc) as Void {
dc.setPenWidth(8);
dc.setPenWidth((dc.getHeight() * 0.02).toNumber());
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
var width = dc.getWidth();
dc.drawLine(width * .1, y, width * .9, y);
+1 -1
View File
@@ -48,7 +48,7 @@ class Track extends WatchUi.Drawable {
var h = dc.getHeight();
var astart = 150;
var aend = 390;
dc.setPenWidth(4);
dc.setPenWidth((dc.getWidth() * 0.01).toNumber());
dc.setColor(0x555555, Graphics.COLOR_TRANSPARENT);
dc.drawArc(w / 2, h / 2, w / 2 - 2, Graphics.ARC_COUNTER_CLOCKWISE, astart, aend);