Skip to content

Commit

Permalink
Fix date position and color
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyer committed Jan 19, 2016
1 parent e706692 commit 64bda90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"chalk"
],
"uuid": "ff541ca4-a444-4513-879a-35ff9ec48a1b",
"versionLabel": "1.5",
"versionLabel": "1.6",
"watchapp": {
"watchface": true
}
Expand Down
4 changes: 3 additions & 1 deletion src/engineering.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,18 @@ static void hands_update_proc(Layer *layer, GContext *ctx) {

// date
if (b_show_date) {
graphics_context_set_text_color(ctx, gcolor_numbers);
int offset = !b_show_numbers * 10;
#ifdef PBL_RECT
graphics_draw_text(ctx, s_date_buffer, fonts_get_system_font(FONT_KEY_GOTHIC_14), GRect(80, 75, 40 + offset, 14), GTextOverflowModeWordWrap, GTextAlignmentCenter, NULL);
#else
graphics_draw_text(ctx, s_date_buffer, fonts_get_system_font(FONT_KEY_GOTHIC_18), GRect(104, 78, 40 + offset, 14), GTextOverflowModeWordWrap, GTextAlignmentCenter, NULL);
graphics_draw_text(ctx, s_date_buffer, fonts_get_system_font(FONT_KEY_GOTHIC_18), GRect(100, 78, 45 + offset, 14), GTextOverflowModeWordWrap, GTextAlignmentCenter, NULL);
#endif
}

// temperature
if (b_show_temperature) {
graphics_context_set_text_color(ctx, gcolor_numbers);
int offset = !b_show_numbers * 10;
#ifdef PBL_RECT
graphics_draw_text(ctx, s_temp_buffer, fonts_get_system_font(FONT_KEY_GOTHIC_14), GRect(27 - offset, 75, 40 + offset, 14), GTextOverflowModeWordWrap, GTextAlignmentCenter, NULL);
Expand Down

0 comments on commit 64bda90

Please sign in to comment.