diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-10-24 11:10:33 +0400 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-10-24 11:10:33 +0400 |
commit | 6eef6c15280b2a197e668a998b07be3737a62e23 (patch) | |
tree | 4f34c87be0d4396f2df0946c4d089789d8ba1d37 | |
parent | 6be5fda4ff623877dd04460df65bb51dbeb4927f (diff) |
Enlarged battery icon
-rw-r--r-- | appinfo.json | 2 | ||||
-rw-r--r-- | mario.pbw | bin | 21829 -> 21828 bytes | |||
-rw-r--r-- | resources/images/battery.png | bin | 165 -> 168 bytes | |||
-rw-r--r-- | src/pebble-mario.c | 4 |
4 files changed, 3 insertions, 3 deletions
diff --git a/appinfo.json b/appinfo.json index ceb61b3..a2631e2 100644 --- a/appinfo.json +++ b/appinfo.json @@ -10,7 +10,7 @@ }, "capabilities": [ "configurable" ], "appKeys": { - "config_show_no_phone": 0, + "config_show_no_phone": 0, "config_show_battery": 1, "config_vibe": 2, "config_inverse": 3 Binary files differdiff --git a/resources/images/battery.png b/resources/images/battery.png Binary files differindex 390ccb8..15bea70 100644 --- a/resources/images/battery.png +++ b/resources/images/battery.png diff --git a/src/pebble-mario.c b/src/pebble-mario.c index 0e59e9b..931e1c7 100644 --- a/src/pebble-mario.c +++ b/src/pebble-mario.c @@ -235,7 +235,7 @@ void battery_update_callback(Layer *layer, GContext *ctx) { graphics_draw_bitmap_in_rect(ctx, battery_bmp, image_rect); graphics_context_set_fill_color(ctx, main_color); - graphics_fill_rect(ctx, GRect(1, 2, charge_state.charge_percent / 10, 6), 0, GCornerNone); + graphics_fill_rect(ctx, GRect(2, 3, charge_state.charge_percent / 10, 4), 0, GCornerNone); } else graphics_draw_bitmap_in_rect(ctx, battery_charging_bmp, image_rect); } @@ -348,7 +348,7 @@ void handle_init() mario_up_rect = GRect(32, BLOCK_SIZE + BLOCK_LAYER_EXTRA - BLOCK_SQUEEZE, 80, 80); ground_rect = GRect(0, 168-GROUND_HEIGHT, 144, 168); no_phone_rect = GRect(5, 128, 10, 10); - battery_rect = GRect(126, 129, 13, 10); + battery_rect = GRect(124, 129, 15, 10); hour_up_rect = GRect(5, -10, 40, 40); hour_normal_rect = GRect(5, 5 + BLOCK_LAYER_EXTRA, 40, 40); |