aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-01-23 23:41:02 +0100
committerVictor Häggqvist <[email protected]>2014-01-23 23:41:02 +0100
commitc8e9330e8c90358163db46a6c802bad0f1a7b4c2 (patch)
tree3c4290d462b1aa8c29ae9b3e94cae575aae81040
parent9565d55eaf7a777a2a9d6d448fdc2bc6cfcd45fb (diff)
big font
-rw-r--r--src/battery.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/battery.c b/src/battery.c
index 24790b2..2ccefbc 100644
--- a/src/battery.c
+++ b/src/battery.c
@@ -1,5 +1,5 @@
#include <pebble.h>
-#include <inttypes.h>
+//#include <pebble_fonts.h>
static Window *window;
static TextLayer *battery_percentage;
@@ -24,8 +24,9 @@ static void window_load(Window *window) {
Layer *window_layer = window_get_root_layer(window);
GRect bounds = layer_get_bounds(window_layer);
- battery_percentage = text_layer_create((GRect) { .origin = { 0, 52 }, .size = { bounds.size.w, 20 } });
+ battery_percentage = text_layer_create((GRect) { .origin = { 0, 32 }, .size = { bounds.size.w, 45 } });
text_layer_set_text_alignment(battery_percentage, GTextAlignmentCenter);
+ text_layer_set_font(battery_percentage, fonts_get_system_font(FONT_KEY_BITHAM_42_BOLD));
charge_status = text_layer_create((GRect) { .origin = { 0, 82 }, .size = { bounds.size.w, 20 } });
text_layer_set_text_alignment(charge_status, GTextAlignmentCenter);