1
0
Fork 0

fonts change

master
frederic wagner 2022-07-23 08:41:23 +02:00
parent 3ee3ddc403
commit 2eea84f01d
3 changed files with 12 additions and 5 deletions

View File

@ -32,3 +32,6 @@
* Bugfix in map display (last segment was missing + wrong colors).
* Waypoint detections using OSM + sharp angles
* New algorith for direction detection
0.11:
* Better fonts (more free space, still readable).

View File

@ -174,8 +174,12 @@ class Status {
let hours = now.getHours().toString();
g.setFont("6x8:2")
.setColor(g.theme.fg)
.drawString(hours + ":" + minutes, 0, g.getHeight() - 49);
g.drawString("d. " + rounded_distance + "/" + total, 0, g.getHeight() - 32);
.drawString(hours + ":" + minutes, g.getWidth() - 50, g.getHeight() - 15);
g.setFont("6x15").drawString(
"d. " + rounded_distance + "/" + total,
0,
g.getHeight() - 32
);
g.drawString(
"seg." +
(this.current_segment + 1) +
@ -191,13 +195,13 @@ class Status {
if (this.distance_to_next_point <= 20) {
if (this.path.is_waypoint(this.reaching)) {
g.setColor(0.0, 1.0, 0.0)
.setFont("6x8:2")
.setFont("6x15")
.drawString("turn", g.getWidth() - 55, 35);
}
}
if (!this.on_path) {
g.setColor(1.0, 0.0, 0.0)
.setFont("6x8:2")
.setFont("6x15")
.drawString("lost", g.getWidth() - 55, 35);
}
}

View File

@ -2,7 +2,7 @@
"id": "gipy",
"name": "Gipy",
"shortName": "Gipy",
"version": "0.10",
"version": "0.11",
"description": "Follow gpx files",
"allow_emulator":false,
"icon": "gipy.png",