diff --git a/package.json b/package.json index f442d9d..afff12a 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,14 @@ "do_bt_buzz" ], "resources": { - "media": [] + "media": [ + { + "menuIcon": "true", + "type": "png", + "name": "MENU_ICON", + "file": "icon.png" + } + ] } } } \ No newline at end of file diff --git a/resources/icon.png b/resources/icon.png new file mode 100644 index 0000000..8a547f0 Binary files /dev/null and b/resources/icon.png differ diff --git a/src/c/drawing/drawing.c b/src/c/drawing/drawing.c index f851385..f87a23b 100644 --- a/src/c/drawing/drawing.c +++ b/src/c/drawing/drawing.c @@ -250,7 +250,8 @@ static void draw_time(Layer *layer, GContext *ctx) { } /// @brief Draws the bar in the centered style -/// @param height height (in relative pixels) to draw it +/// @param x x position to draw (grid-relative) +/// @param y y position to draw (grid-relative) static void draw_bar_center(int x, int y, Layer *layer, GContext *ctx) { GRect bounds = layer_get_bounds(layer); @@ -276,7 +277,8 @@ static void draw_bar_center(int x, int y, Layer *layer, GContext *ctx) { } /// @brief Draws the bar in the solid style -/// @param height height (in relative pixels) to draw it +/// @param x x position to draw (grid-relative) +/// @param y y position to draw (grid-relative) static void draw_bar_solid(int x, int y, Layer *layer, GContext *ctx) { GRect bounds = layer_get_bounds(layer); @@ -288,7 +290,8 @@ static void draw_bar_solid(int x, int y, Layer *layer, GContext *ctx) { } /// @brief Draws the bar in the dotted style -/// @param height height (in relative pixels) to draw it +/// @param x x position to draw (grid-relative) +/// @param y y position to draw (grid-relative) static void draw_bar_dotted(int x, int y, Layer *layer, GContext *ctx) { GRect bounds = layer_get_bounds(layer); @@ -301,6 +304,13 @@ static void draw_bar_dotted(int x, int y, Layer *layer, GContext *ctx) { } } +/// @brief Draws the bar in the solid style, changes color w/ battery +/// @param x x position to draw (grid-relative) +/// @param y y position to draw (grid-relative) +static void draw_bar_battery(int x, int y, Layer *layer, GContext *ctx) { + +} + /// @brief Draws background with corner-growing pattern, PARENT OF SHINE AND PRIDE static void draw_bg_corner(GColor color_array[], int num_stripes, Layer *layer, GContext *ctx) { GRect bounds = layer_get_bounds(layer);