feat(display): nice!view individual profile status (#2265)

Allow the nice!view widget to display the status of each profile by:

- not adding a circle around the number if the profile is not bound
- drawing a dashed circle around the number if a profile is bound but not connected
This commit is contained in:
snoyer
2025-07-26 17:46:51 +01:00
committed by GitHub
parent 6d7bbc8670
commit d09087f4dc
3 changed files with 44 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2023 The ZMK Contributors
* Copyright (c) 2025 The ZMK Contributors
* SPDX-License-Identifier: MIT
*
*/
@@ -8,6 +8,8 @@
#include <lvgl.h>
#include <zmk/endpoints.h>
#define NICEVIEW_PROFILE_COUNT 5
#define CANVAS_SIZE 68
#define LVGL_BACKGROUND \
@@ -23,6 +25,8 @@ struct status_state {
int active_profile_index;
bool active_profile_connected;
bool active_profile_bonded;
bool profiles_connected[NICEVIEW_PROFILE_COUNT];
bool profiles_bonded[NICEVIEW_PROFILE_COUNT];
uint8_t layer_index;
const char *layer_label;
uint8_t wpm[10];