simplified checks for colorblind mode

This commit is contained in:
Mikayla
2024-03-12 16:24:32 +00:00
parent 89d56d3101
commit 8dae632b25
10 changed files with 43 additions and 34 deletions

View File

@@ -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