From a00a824a7f5a00cbcca2765e64d2eddf5d7fca50 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 12 Mar 2024 13:15:28 -0400 Subject: [PATCH] cleanup and fixes --- graphics/core.lua | 2 +- graphics/themes.lua | 2 +- supervisor/panel/style.lua | 1 + supervisor/renderer.lua | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/graphics/core.lua b/graphics/core.lua index e2587fc..b931a3e 100644 --- a/graphics/core.lua +++ b/graphics/core.lua @@ -7,7 +7,7 @@ local flasher = require("graphics.flasher") local core = {} -core.version = "2.2.1" +core.version = "2.2.2" core.flasher = flasher core.events = events diff --git a/graphics/themes.lua b/graphics/themes.lua index c0d02ed..b59b504 100644 --- a/graphics/themes.lua +++ b/graphics/themes.lua @@ -289,7 +289,7 @@ themes.smooth_stone = { } } ----@class ui_palette +---@type ui_palette themes.deepslate = { colors = { { c = colors.red, hex = 0xeb6a6c }, diff --git a/supervisor/panel/style.lua b/supervisor/panel/style.lua index 4fe9cb4..a0a8bb0 100644 --- a/supervisor/panel/style.lua +++ b/supervisor/panel/style.lua @@ -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 diff --git a/supervisor/renderer.lua b/supervisor/renderer.lua index b1c9f06..fde7fc3 100644 --- a/supervisor/renderer.lua +++ b/supervisor/renderer.lua @@ -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)