forked from kofal.net/zmk
fix: Fix nice_view display widgets
This commit is contained in:
committed by
Pete Johanson
parent
b17d896c5c
commit
6a3cc914fc
@@ -19,10 +19,9 @@ struct status_state {
|
||||
uint8_t battery;
|
||||
bool charging;
|
||||
#if !IS_ENABLED(CONFIG_ZMK_SPLIT) || IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
enum zmk_endpoint selected_endpoint;
|
||||
struct zmk_endpoint_instance selected_endpoint;
|
||||
bool active_profile_connected;
|
||||
bool active_profile_bonded;
|
||||
uint8_t active_profile_index;
|
||||
uint8_t layer_index;
|
||||
const char *layer_label;
|
||||
uint8_t wpm[10];
|
||||
@@ -39,7 +38,7 @@ struct battery_status_state {
|
||||
};
|
||||
|
||||
void rotate_canvas(lv_obj_t *canvas, lv_color_t cbuf[]);
|
||||
void draw_battery(lv_obj_t *canvas, struct status_state state);
|
||||
void draw_battery(lv_obj_t *canvas, const struct status_state *state);
|
||||
void init_label_dsc(lv_draw_label_dsc_t *label_dsc, lv_color_t color, const lv_font_t *font,
|
||||
lv_text_align_t align);
|
||||
void init_rect_dsc(lv_draw_rect_dsc_t *rect_dsc, lv_color_t bg_color);
|
||||
|
||||
Reference in New Issue
Block a user