From 44c6352a8c9371952007e9b1cbe60149546e3750 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 23 Mar 2024 01:15:42 -0400 Subject: [PATCH] #458 changed induction matrix title text to be white in dark mode --- coordinator/startup.lua | 2 +- coordinator/ui/components/imatrix.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coordinator/startup.lua b/coordinator/startup.lua index 2f83016..7010500 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder") local apisessions = require("coordinator.session.apisessions") -local COORDINATOR_VERSION = "v1.3.1" +local COORDINATOR_VERSION = "v1.3.2" local CHUNK_LOAD_DELAY_S = 30.0 diff --git a/coordinator/ui/components/imatrix.lua b/coordinator/ui/components/imatrix.lua index 078661a..2b80350 100644 --- a/coordinator/ui/components/imatrix.lua +++ b/coordinator/ui/components/imatrix.lua @@ -34,7 +34,8 @@ local function new_view(root, x, y, data, ps, id) local matrix = Div{parent=root,fg_bg=style.root,width=33,height=24,x=x,y=y} - local cutout_fg_bg = cpair(style.theme.bg, colors.gray) + -- black has low contrast with dark gray, so if background is black use white instead + local cutout_fg_bg = cpair(util.trinary(style.theme.bg == colors.black, colors.white, style.theme.bg), colors.gray) TextBox{parent=matrix,text=" ",width=33,height=1,x=1,y=1,fg_bg=cutout_fg_bg} TextBox{parent=matrix,text=title,alignment=ALIGN.CENTER,width=33,height=1,x=1,y=2,fg_bg=cutout_fg_bg}