#457 work on blue indicator modes
This commit is contained in:
@@ -65,8 +65,8 @@ local function init(panel, num_units)
|
||||
network.update(types.PANEL_LINK_STATE.DISCONNECTED)
|
||||
network.register(ps, "link_state", network.update)
|
||||
else
|
||||
local nt_lnk = LEDPair{parent=system,label="NT LINKED",off=colors.red_off,c1=colors.red,c2=colors.green}
|
||||
local nt_ver = LEDPair{parent=system,label="NT VERSION",off=colors.red_off,c1=colors.red,c2=colors.green}
|
||||
local nt_lnk = LEDPair{parent=system,label="NT LINKED",off=colors.black,c1=colors.red,c2=colors.green}
|
||||
local nt_ver = LEDPair{parent=system,label="NT VERSION",off=colors.black,c1=colors.red,c2=colors.green}
|
||||
|
||||
nt_lnk.register(ps, "link_state", function (state)
|
||||
local value = 2
|
||||
|
||||
@@ -89,16 +89,17 @@ style.theme = smooth_stone
|
||||
---@param color_mode COLOR_MODE the color mode to use
|
||||
function style.set_themes(main, fp, color_mode)
|
||||
local colorblind = color_mode ~= themes.COLOR_MODE.STANDARD
|
||||
local black_ind_off = colorblind and (color_mode ~= themes.COLOR_MODE.BLUE_IND)
|
||||
|
||||
style.ind_bkg = colors.gray
|
||||
style.ind_hi_box_bg = util.trinary(colorblind, colors.black, colors.gray)
|
||||
style.ind_hi_box_bg = util.trinary(black_ind_off, colors.black, colors.gray)
|
||||
|
||||
if main == themes.UI_THEME.SMOOTH_STONE then
|
||||
style.theme = smooth_stone
|
||||
style.ind_bkg = util.trinary(colorblind, colors.black, colors.gray)
|
||||
style.ind_bkg = util.trinary(black_ind_off, colors.black, colors.gray)
|
||||
elseif main == themes.UI_THEME.DEEPSLATE then
|
||||
style.theme = deepslate
|
||||
style.ind_hi_box_bg = util.trinary(colorblind, colors.black, colors.lightGray)
|
||||
style.ind_hi_box_bg = util.trinary(black_ind_off, colors.black, colors.lightGray)
|
||||
end
|
||||
|
||||
style.colorblind = colorblind
|
||||
|
||||
Reference in New Issue
Block a user