Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/tangara-fw/commit/b8f13c804b8c253fa399e77d00c608b72a092fda?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
21 additions and
7 deletions
lua/settings.lua
@ -406,24 +406,38 @@ settings.ThemeSettings = SettingsScreen:new {
selected_idx = idx
end
local theme_chooser = self.content : Dropdown {
local theme_container = self.content : Object {
w = lvgl.PCT ( 100 ) ,
h = lvgl.SIZE_CONTENT ,
flex = {
flex_direction = " column " ,
justify_content = " flex-start " ,
align_items = " space-evenly " ,
align_content = " flex-start " ,
} ,
pad_row = 4 ,
}
theme_container : add_style ( styles.list_item )
local theme_chooser = theme_container : Dropdown {
options = options ,
symbol = img.chevron ,
}
local theme_chooser_desc = widgets.Description ( theme_chooser , " Theme " )
theme_chooser : set ( { selected = selected_idx } )
theme_chooser : onevent ( lvgl.EVENT . VALUE_CHANGED , function ( )
local theme_reload = function ( )
local option = theme_chooser : get ( ' selected_str ' )
local selectedTheme = themeOptions [ option ]
if ( selectedTheme ) then
theme.load_theme ( tostring ( selectedTheme ) )
backstack.reset ( main_menu : new ( ) )
end
end )
end
theme_chooser : set ( { selected = selected_idx } )
theme_chooser : onevent ( lvgl.EVENT . VALUE_CHANGED , theme_reload )
theme_chooser : focus ( )
local theme_reload_btn = theme_container : Button { }
theme_reload_btn : Label { text = " Reload " }
theme_reload_btn : onClicked ( theme_reload )
end
}