Use C functions for the backstack, instead of a lua module

Working with the default group and root kinda sucks if you have to do it
from lua!
This commit is contained in:
jacqueline
2023-11-20 14:43:20 +11:00
parent b7f37f6426
commit effac1917a
9 changed files with 97 additions and 58 deletions
+2 -6
View File
@@ -3,11 +3,9 @@ local widgets = require("widgets")
local legacy_ui = require("legacy_ui")
local database = require("database")
local main_menu = {}
function main_menu:Create(parent)
return function()
local menu = {}
menu.root = lvgl.Object(parent, {
menu.root = lvgl.Object(nil, {
flex = {
flex_direction = "column",
flex_wrap = "wrap",
@@ -46,5 +44,3 @@ function main_menu:Create(parent)
return menu
end
return main_menu