From 55e4e5a68b21d24d372a2cfed3b8851364608516 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 24 Mar 2024 23:05:52 -0400 Subject: [PATCH] #457 fix for indicator background --- coordinator/ui/layout/front_panel.lua | 6 +++--- coordinator/ui/style.lua | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/coordinator/ui/layout/front_panel.lua b/coordinator/ui/layout/front_panel.lua index d23712b..7124083 100644 --- a/coordinator/ui/layout/front_panel.lua +++ b/coordinator/ui/layout/front_panel.lua @@ -61,12 +61,12 @@ local function init(panel, num_units) local modem = LED{parent=system,label="MODEM",colors=led_grn} if not style.colorblind then - local network = RGBLED{parent=system,label="NETWORK",colors={colors.green,colors.red,colors.orange,colors.yellow,style.ind_bkg}} + local network = RGBLED{parent=system,label="NETWORK",colors={colors.green,colors.red,colors.orange,colors.yellow,style.fp_ind_bkg}} 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=style.ind_bkg,c1=colors.red,c2=colors.green} - local nt_ver = LEDPair{parent=system,label="NT VERSION",off=style.ind_bkg,c1=colors.red,c2=colors.green} + local nt_lnk = LEDPair{parent=system,label="NT LINKED",off=style.fp_ind_bkg,c1=colors.red,c2=colors.green} + local nt_ver = LEDPair{parent=system,label="NT VERSION",off=style.fp_ind_bkg,c1=colors.red,c2=colors.green} nt_lnk.register(ps, "link_state", function (state) local value = 2 diff --git a/coordinator/ui/style.lua b/coordinator/ui/style.lua index 1b10106..471f5b7 100644 --- a/coordinator/ui/style.lua +++ b/coordinator/ui/style.lua @@ -92,6 +92,7 @@ function style.set_themes(main, fp, color_mode) local black_ind_off = color_mode ~= themes.COLOR_MODE.STANDARD and color_mode ~= themes.COLOR_MODE.BLUE_IND style.ind_bkg = colors.gray + style.fp_ind_bkg = util.trinary(black_ind_off, 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