cleanup and fixes
This commit is contained in:
@@ -18,6 +18,7 @@ style.ind_grn = cpair(colors.green, colors.green_off)
|
||||
|
||||
-- set theme per configuration
|
||||
---@param fp FP_THEME front panel theme
|
||||
---@param color_mode COLOR_MODE the color mode to use
|
||||
function style.set_theme(fp, color_mode)
|
||||
if fp == themes.FP_THEME.SANDSTONE then
|
||||
style.theme = themes.sandstone
|
||||
|
||||
@@ -27,7 +27,7 @@ function renderer.try_start_ui(theme, color_mode)
|
||||
|
||||
if ui.display == nil then
|
||||
-- set theme
|
||||
style.set_theme(theme)
|
||||
style.set_theme(theme, color_mode)
|
||||
|
||||
-- reset terminal
|
||||
term.setTextColor(colors.white)
|
||||
|
||||
Reference in New Issue
Block a user