Skip to content

Commit

Permalink
[FL-3132] HID app: Add new function key icons (#3236)
Browse files Browse the repository at this point in the history
* Add new function key icons
* Fix graphical glitches on the buttons

Co-authored-by: あく <[email protected]>
  • Loading branch information
Astrrra and skotopes authored Dec 2, 2023
1 parent 6a5d638 commit 9373286
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7 deletions.
Binary file removed applications/system/hid_app/assets/Alt_11x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Alt_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed applications/system/hid_app/assets/Cmd_15x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Cmd_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed applications/system/hid_app/assets/Ctrl_15x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Ctrl_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed applications/system/hid_app/assets/Del_12x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Del_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed applications/system/hid_app/assets/Esc_14x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Esc_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed applications/system/hid_app/assets/Tab_15x7.png
Binary file not shown.
Binary file added applications/system/hid_app/assets/Tab_17x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions applications/system/hid_app/views/hid_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct {
#define ROW_COUNT 7
#define COLUMN_COUNT 12

// 0 width items are not drawn, but there value is used
// 0 width items are not drawn, but their value is used
const HidKeyboardKey hid_keyboard_keyset[ROW_COUNT][COLUMN_COUNT] = {
{
{.width = 1, .icon = &I_ButtonF1_5x8, .value = HID_KEYBOARD_F1},
Expand Down Expand Up @@ -140,17 +140,17 @@ const HidKeyboardKey hid_keyboard_keyset[ROW_COUNT][COLUMN_COUNT] = {
{.width = 1, .icon = &I_ButtonRight_4x7, .value = HID_KEYBOARD_RIGHT_ARROW},
},
{
{.width = 2, .icon = &I_Ctrl_15x7, .value = HID_KEYBOARD_L_CTRL},
{.width = 2, .icon = &I_Ctrl_17x10, .value = HID_KEYBOARD_L_CTRL},
{.width = 0, .value = HID_KEYBOARD_L_CTRL},
{.width = 2, .icon = &I_Alt_11x7, .value = HID_KEYBOARD_L_ALT},
{.width = 2, .icon = &I_Alt_17x10, .value = HID_KEYBOARD_L_ALT},
{.width = 0, .value = HID_KEYBOARD_L_ALT},
{.width = 2, .icon = &I_Cmd_15x7, .value = HID_KEYBOARD_L_GUI},
{.width = 2, .icon = &I_Cmd_17x10, .value = HID_KEYBOARD_L_GUI},
{.width = 0, .value = HID_KEYBOARD_L_GUI},
{.width = 2, .icon = &I_Tab_15x7, .value = HID_KEYBOARD_TAB},
{.width = 2, .icon = &I_Tab_17x10, .value = HID_KEYBOARD_TAB},
{.width = 0, .value = HID_KEYBOARD_TAB},
{.width = 2, .icon = &I_Esc_14x7, .value = HID_KEYBOARD_ESCAPE},
{.width = 2, .icon = &I_Esc_17x10, .value = HID_KEYBOARD_ESCAPE},
{.width = 0, .value = HID_KEYBOARD_ESCAPE},
{.width = 2, .icon = &I_Del_12x7, .value = HID_KEYBOARD_DELETE_FORWARD},
{.width = 2, .icon = &I_Del_17x10, .value = HID_KEYBOARD_DELETE_FORWARD},
{.width = 0, .value = HID_KEYBOARD_DELETE_FORWARD},
},
};
Expand Down

0 comments on commit 9373286

Please sign in to comment.