Skip to content

Commit

Permalink
Use MacOS symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi authored May 8, 2024
1 parent 4544da3 commit e923c04
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions boards/shields/dongle_display/widgets/modifiers.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ struct modifier_symbol ms_shift = {
.symbol_dsc = &shift_icon,
};

LV_IMG_DECLARE(alt_icon);
struct modifier_symbol ms_alt = {
LV_IMG_DECLARE(opt_icon);
struct modifier_symbol ms_opt = {
.modifier = MOD_LALT | MOD_RALT,
.symbol_dsc = &alt_icon,
.symbol_dsc = &opt_icon,
};

LV_IMG_DECLARE(win_icon);
struct modifier_symbol ms_win = {
LV_IMG_DECLARE(cmd_icon);
struct modifier_symbol ms_cmd = {
.modifier = MOD_LGUI | MOD_RGUI,
.symbol_dsc = &win_icon,
.symbol_dsc = &cmd_icon,
};

struct modifier_symbol *modifier_symbols[] = {
// this order determines the order of the symbols
&ms_win,
&ms_alt,
&ms_control,
&ms_opt,
&ms_cmd,
&ms_shift
};

Expand Down Expand Up @@ -144,4 +144,4 @@ int zmk_widget_modifiers_init(struct zmk_widget_modifiers *widget, lv_obj_t *par

lv_obj_t *zmk_widget_modifiers_obj(struct zmk_widget_modifiers *widget) {
return widget->obj;
}
}

0 comments on commit e923c04

Please sign in to comment.