Skip to content

Commit

Permalink
Fix layout for weather + mark ticks style
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDam committed Apr 25, 2020
1 parent 40115c9 commit 69cd1eb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions source/complication/BarComplication.mc
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ class BarComplication extends Ui.Drawable {
// up
if (centerX == 120) {
position_y_draw = 52;//centerY - 36 - 18 - 14; // font height 14
position_y_draw_bonus = -15;
position_y_draw_bonus = -13;
} else if (centerX == 130) {
position_y_draw = 58;//centerY - 36 - 18 - 14 - 4; // font height 14
position_y_draw_bonus = -20;
position_y_draw_bonus = -18;
} else if (centerX == 140) {
position_y_draw = 64;//centerY - 36 - 18 - 14 - 8; // font height 14
position_y_draw_bonus = -20;
position_y_draw_bonus = -18;
} else {
position_y_draw = 46;//centerY - 36 - 18 - 14 + 5; // font height 14
position_y_draw_bonus = -15;
position_y_draw = 44;//centerY - 36 - 18 - 14 + 5; // font height 14
position_y_draw_bonus = -13;
}
} else {
// down
if (centerX == 120) {
position_y_draw = 156;//centerY + 36;
position_y_draw_bonus = 31;
position_y_draw_bonus = 29;
} else if (centerX == 130) {
position_y_draw = 170;//centerY + 36 + 4;
position_y_draw_bonus = 35;
position_y_draw_bonus = 33;
} else if (centerX == 140) {
position_y_draw = 184;//centerY + 36 + 8;
position_y_draw_bonus = 35;
position_y_draw_bonus = 33;
} else {
position_y_draw = 140;//centerY + 36 - 5;
position_y_draw_bonus = 31;
position_y_draw_bonus = 29;
}
}
}
Expand Down Expand Up @@ -152,6 +152,7 @@ class BarComplication extends Ui.Drawable {
dc.setColor(gmain_color, Graphics.COLOR_TRANSPARENT);
dc.drawText(centerX, position_y_draw + position_y_draw_bonus, weatherFont, icon, Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);
}
bonus_padding = position == 0 ? 2 : -2;
} else {
bonus_padding = position == 0 ? -7 : 5;
}
Expand Down

0 comments on commit 69cd1eb

Please sign in to comment.