cleanup and fixes

This commit is contained in:
Mikayla Fischler 2024-03-12 13:15:28 -04:00
parent 9393632428
commit a00a824a7f
4 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
local core = {} local core = {}
core.version = "2.2.1" core.version = "2.2.2"
core.flasher = flasher core.flasher = flasher
core.events = events core.events = events

View File

@ -289,7 +289,7 @@ themes.smooth_stone = {
} }
} }
---@class ui_palette ---@type ui_palette
themes.deepslate = { themes.deepslate = {
colors = { colors = {
{ c = colors.red, hex = 0xeb6a6c }, { c = colors.red, hex = 0xeb6a6c },

View File

@ -18,6 +18,7 @@ style.ind_grn = cpair(colors.green, colors.green_off)
-- set theme per configuration -- set theme per configuration
---@param fp FP_THEME front panel theme ---@param fp FP_THEME front panel theme
---@param color_mode COLOR_MODE the color mode to use
function style.set_theme(fp, color_mode) function style.set_theme(fp, color_mode)
if fp == themes.FP_THEME.SANDSTONE then if fp == themes.FP_THEME.SANDSTONE then
style.theme = themes.sandstone style.theme = themes.sandstone

View File

@ -27,7 +27,7 @@ function renderer.try_start_ui(theme, color_mode)
if ui.display == nil then if ui.display == nil then
-- set theme -- set theme
style.set_theme(theme) style.set_theme(theme, color_mode)
-- reset terminal -- reset terminal
term.setTextColor(colors.white) term.setTextColor(colors.white)