the changes include lots of new code in ui/lvgl.zig and ui/widget.zig to work with LVGL directly from zig. in fact, some C code is moved from ui/c/ui.c to ui/xxx.zig.
in addition, a new module ui/widget.zig is where all custom UI elements will reside. at the moment it comprises of the ported topdrop and a new modal func. the latter is an alternative to LVGL's lv_msgbox popup.
as a practical example, the changes replace the power off confirmation popup with the new modal window: part of #5. here's how it looks like now; the white border lines around are the physical screen boundaries:
the changes include lots of new code in ui/lvgl.zig and ui/widget.zig to work with LVGL directly from zig. in fact, some C code is moved from ui/c/ui.c to ui/xxx.zig.
in addition, a new module ui/widget.zig is where all custom UI elements will reside. at the moment it comprises of the ported topdrop and a new modal func. the latter is an alternative to LVGL's lv_msgbox popup.
as a practical example, the changes replace the power off confirmation popup with the new modal window: part of https://git.qcode.ch/nakamochi/ndg/issues/5. here's how it looks like now; the white border lines around are the physical screen boundaries:
![image](/attachments/16ae90d3-835f-4aaf-b789-6351ecd48edc)
functions declared in ui.h were actually used by ui.c, the opposite of
what such a header is expected to contain. these functions are defined
in zig code and declarations are better off in the same ui.c file.
this is just a quick clean up before porting some C code to zig.
this commit includes lots of new code in ui/lvgl.zig and ui/widget.zig
to work with LVGL directly from zig. in fact, some C code is moved from
ui/c/ui.c to ui/xxx.zig.
in addition, a new module ui/widget.zig is where all custom UI elements
will reside. at the moment it comprises of the ported topdrop and a new
modal func. the latter is an alternative to LVGL's lv_msgbox popup.
as a practical example, the commit replaces the power off confirmation
popup with the new modal window.
actually merged with master at https://git.qcode.ch/nakamochi/ndg/commit/4297c139 but forgot to enable "manual merge detection" in the repo so gitea marked it as closed.
the changes include lots of new code in ui/lvgl.zig and ui/widget.zig to work with LVGL directly from zig. in fact, some C code is moved from ui/c/ui.c to ui/xxx.zig.
in addition, a new module ui/widget.zig is where all custom UI elements will reside. at the moment it comprises of the ported topdrop and a new modal func. the latter is an alternative to LVGL's lv_msgbox popup.
as a practical example, the changes replace the power off confirmation popup with the new modal window: part of #5. here's how it looks like now; the white border lines around are the physical screen boundaries:
ah 💩 ci failed in https://woodpecker.qcode.ch/nakamochi/ndg/build/10/5 although compiles just fine or my machine. need to investigate.
8426bb046b
to77d027b347
2 years ago77d027b347
to4297c139a1
2 years agothe last forced push fixes a bug in indev deinit logic:
the
lv_indev_get_next(null)
can actually return null during "go to standby" mode because all input devices are temporary deleted.actually merged with master at https://git.qcode.ch/nakamochi/ndg/commit/4297c139 but forgot to enable "manual merge detection" in the repo so gitea marked it as closed.