#458 changed induction matrix title text to be white in dark mode

This commit is contained in:
Mikayla Fischler 2024-03-23 01:15:42 -04:00
parent 968b0a9122
commit 44c6352a8c
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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}