Skip to content

Commit

Permalink
added menu icon!
Browse files Browse the repository at this point in the history
  • Loading branch information
not-phoeniix committed Nov 20, 2022
1 parent 6bfdd7e commit e80c8b0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,14 @@
"do_bt_buzz"
],
"resources": {
"media": []
"media": [
{
"menuIcon": "true",
"type": "png",
"name": "MENU_ICON",
"file": "icon.png"
}
]
}
}
}
Binary file added resources/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions src/c/drawing/drawing.c
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit e80c8b0

Please sign in to comment.