Update submodules, fix LVGL keyboard coloring
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
- feat!: Hide partition name (#27)
|
||||
- fix: Prevent scrolling when keyboard hides (#21)
|
||||
- feat!: Do not show last typed character when typing (#25)
|
||||
- feat: Update lvgl & lv_drivers to git master (2022-02-21)
|
||||
|
||||
## 0.1.0 (2021-11-15)
|
||||
|
||||
|
@@ -20,8 +20,10 @@
|
||||
|
||||
find "$1" -name "*.mk" | while IFS= read -r makefile; do
|
||||
grep "^CSRCS\s*+=" "$makefile" | sed "s|.*=\s*||g" | while read -r expr; do
|
||||
dir=$(dirname "$makefile")
|
||||
|
||||
# Ignore example code
|
||||
if [[ $(dirname $makefile) =~ .*/examples ]]; then
|
||||
if [ "${dir%examples}" != "$dir" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
@@ -32,9 +34,15 @@ find "$1" -name "*.mk" | while IFS= read -r makefile; do
|
||||
| sed 's|$(LVGL_DIR_NAME)/|lvgl/|g' \
|
||||
| sed 's|$(LV_DRIVERS_DIR_NAME)/|lv_drivers/|g')
|
||||
else
|
||||
expr="$(dirname $makefile)/$expr"
|
||||
expr="$dir/$expr"
|
||||
fi
|
||||
|
||||
# Map erroneous(?) paths
|
||||
expr=$(echo "$expr" | sed 's|gpu/lv_gpu_nxp_pxp.c|draw/nxp_pxp/lv_gpu_nxp_pxp.c|g')
|
||||
expr=$(echo "$expr" | sed 's|gpu/lv_gpu_nxp_pxp_osa.c|draw/nxp_pxp/lv_gpu_nxp_pxp_osa.c|g')
|
||||
expr=$(echo "$expr" | sed 's|gpu/lv_gpu_nxp_vglite.c|draw/nxp_vglite/lv_gpu_nxp_vglite.c|g')
|
||||
expr=$(echo "$expr" | sed 's|gpu/lv_gpu_stm32_dma2d.c|draw/stm32_dma2d/lv_gpu_stm32_dma2d.c|g')
|
||||
|
||||
# Resolve $(wildcard ...)
|
||||
expr=$(echo "$expr" | sed 's|$(wildcard\s*\(.*\))|\1|g')
|
||||
|
||||
|
Submodule lv_drivers updated: 97e500b200...1bd4368e71
2
lvgl
2
lvgl
Submodule lvgl updated: bd19083aed...efb9c5cc52
Submodule squeek2lvgl updated: db4222c091...e3ce01bc38
2
theme.c
2
theme.c
@@ -306,7 +306,7 @@ static void keyboard_draw_part_begin_cb(lv_event_t *event) {
|
||||
key = &(current_theme.keyboard.keys.key_char);
|
||||
}
|
||||
|
||||
bool pressed = lv_btnmatrix_get_selected_btn(obj) == dsc->id;
|
||||
bool pressed = lv_btnmatrix_get_selected_btn(obj) == dsc->id && lv_obj_has_state(btnm, LV_STATE_PRESSED);
|
||||
|
||||
dsc->label_dsc->color = lv_color_hex((pressed ? key->pressed : key->normal).fg_color);
|
||||
dsc->rect_dsc->bg_color = lv_color_hex((pressed ? key->pressed : key->normal).bg_color);
|
||||
|
Reference in New Issue
Block a user