Skip to content

Commit 69cd1eb

Browse files
committed
Fix layout for weather + mark ticks style
1 parent 40115c9 commit 69cd1eb

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

source/complication/BarComplication.mc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ class BarComplication extends Ui.Drawable {
1818
// up
1919
if (centerX == 120) {
2020
position_y_draw = 52;//centerY - 36 - 18 - 14; // font height 14
21-
position_y_draw_bonus = -15;
21+
position_y_draw_bonus = -13;
2222
} else if (centerX == 130) {
2323
position_y_draw = 58;//centerY - 36 - 18 - 14 - 4; // font height 14
24-
position_y_draw_bonus = -20;
24+
position_y_draw_bonus = -18;
2525
} else if (centerX == 140) {
2626
position_y_draw = 64;//centerY - 36 - 18 - 14 - 8; // font height 14
27-
position_y_draw_bonus = -20;
27+
position_y_draw_bonus = -18;
2828
} else {
29-
position_y_draw = 46;//centerY - 36 - 18 - 14 + 5; // font height 14
30-
position_y_draw_bonus = -15;
29+
position_y_draw = 44;//centerY - 36 - 18 - 14 + 5; // font height 14
30+
position_y_draw_bonus = -13;
3131
}
3232
} else {
3333
// down
3434
if (centerX == 120) {
3535
position_y_draw = 156;//centerY + 36;
36-
position_y_draw_bonus = 31;
36+
position_y_draw_bonus = 29;
3737
} else if (centerX == 130) {
3838
position_y_draw = 170;//centerY + 36 + 4;
39-
position_y_draw_bonus = 35;
39+
position_y_draw_bonus = 33;
4040
} else if (centerX == 140) {
4141
position_y_draw = 184;//centerY + 36 + 8;
42-
position_y_draw_bonus = 35;
42+
position_y_draw_bonus = 33;
4343
} else {
4444
position_y_draw = 140;//centerY + 36 - 5;
45-
position_y_draw_bonus = 31;
45+
position_y_draw_bonus = 29;
4646
}
4747
}
4848
}
@@ -152,6 +152,7 @@ class BarComplication extends Ui.Drawable {
152152
dc.setColor(gmain_color, Graphics.COLOR_TRANSPARENT);
153153
dc.drawText(centerX, position_y_draw + position_y_draw_bonus, weatherFont, icon, Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);
154154
}
155+
bonus_padding = position == 0 ? 2 : -2;
155156
} else {
156157
bonus_padding = position == 0 ? -7 : 5;
157158
}

0 commit comments

Comments
 (0)