simplified checks for colorblind mode
This commit is contained in:
@@ -27,7 +27,7 @@ function renderer.try_start_ui(units, 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)
|
||||
@@ -49,7 +49,7 @@ function renderer.try_start_ui(units, theme, color_mode)
|
||||
-- init front panel view
|
||||
status, msg = pcall(function ()
|
||||
ui.display = DisplayBox{window=term.current(),fg_bg=style.fp.root}
|
||||
panel_view(ui.display, units, color_mode)
|
||||
panel_view(ui.display, units)
|
||||
end)
|
||||
|
||||
if status then
|
||||
|
||||
Reference in New Issue
Block a user