mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
cleanup and fixes
This commit is contained in:
parent
9393632428
commit
a00a824a7f
@ -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
|
||||
|
@ -289,7 +289,7 @@ themes.smooth_stone = {
|
||||
}
|
||||
}
|
||||
|
||||
---@class ui_palette
|
||||
---@type ui_palette
|
||||
themes.deepslate = {
|
||||
colors = {
|
||||
{ c = colors.red, hex = 0xeb6a6c },
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user