Skip to content

Commit

Permalink
Modify : Changed "no notifications" message from a menu item to graph…
Browse files Browse the repository at this point in the history
…ic text (#155)

Tried to modify "no notifications" message in the same style as in PebbleOS.
  • Loading branch information
Blackhawk95 committed Mar 8, 2021
1 parent 2de4023 commit a9e6da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Apps/System/notification.c
Expand Up @@ -99,7 +99,11 @@ static rebble_notification *_noty_for_index(int notif_index) {

static void _notif_menu_draw_row(GContext *ctx, const Layer *cell_layer, MenuIndex *cell_index, void *context) {
if (_notif_count == 0) {
menu_cell_basic_draw(ctx, cell_layer, "No notifications", "Asleep at the switch?", /* icon, GBitmap */ NULL);
graphics_context_set_fill_color(ctx, GColorDarkGray);
graphics_fill_rect(ctx, n_GRect(0,0,__SCREEN_WIDTH, __SCREEN_HEIGHT),0,n_GCornerNone);
graphics_draw_text(ctx,"No notifications", fonts_get_system_font(FONT_KEY_GOTHIC_18),
n_GRect(0,__SCREEN_HEIGHT/3,__SCREEN_WIDTH, __SCREEN_HEIGHT),
GTextOverflowModeTrailingEllipsis, GTextAlignmentCenter, 0);
return;
}

Expand Down

0 comments on commit a9e6da6

Please sign in to comment.