From 089710093fae901ca36f869a109fbace781b9728 Mon Sep 17 00:00:00 2001 From: Bogdan Brinza Date: Thu, 9 Jan 2025 11:13:47 -0800 Subject: [PATCH] Bumping issa --- go.mod | 2 +- go.sum | 2 ++ rest/compton_fragments/set_tint.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 0fd4b1a2..f3cfe8a2 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/boggydigital/compton v0.2.32 github.com/boggydigital/coost v0.3.9 github.com/boggydigital/dolo v0.2.19 - github.com/boggydigital/issa v0.1.21 + github.com/boggydigital/issa v0.1.22 github.com/boggydigital/kevlar v0.5.19 github.com/boggydigital/kevlar_dolo v0.1.7 github.com/boggydigital/middleware v0.1.16 diff --git a/go.sum b/go.sum index b14bfd61..45b77582 100644 --- a/go.sum +++ b/go.sum @@ -50,6 +50,8 @@ github.com/boggydigital/dolo v0.2.19 h1:/lWxHGI26xVtacOjWwnVwB4Iwg5x0+ou6xYjHbqT github.com/boggydigital/dolo v0.2.19/go.mod h1:iFo1k9TpMP2aLy03ZLr2kB5sj6yRxpuC/wx5p2jpAMQ= github.com/boggydigital/issa v0.1.21 h1:HUg7ZjUoZbv2Upc+WCBQXdiF/HyNlnf0qIWSo/hz9h8= github.com/boggydigital/issa v0.1.21/go.mod h1:Za10zkG7QvOGC7dDRjvzVr6GWDQm4f7FwO8/fH8usZY= +github.com/boggydigital/issa v0.1.22 h1:yfD/X5EeaPyI44XTobwjafMSzeKnuB7cxWsXY3XewO4= +github.com/boggydigital/issa v0.1.22/go.mod h1:Za10zkG7QvOGC7dDRjvzVr6GWDQm4f7FwO8/fH8usZY= github.com/boggydigital/kevlar v0.5.19 h1:NPNxTSLReQyYDzYlxX+Vb9XbOy2BIgh3W+i28Oh2PKY= github.com/boggydigital/kevlar v0.5.19/go.mod h1:hoHfBGc8xq2afcKcbPG5699SJDQ9TjiNeWJ7kwA6XF0= github.com/boggydigital/kevlar_dolo v0.1.7 h1:9HmNcSTrZDu1PZOw5OyCDQewQsh0Iq9hmOJ7Ib+Lw0I= diff --git a/rest/compton_fragments/set_tint.go b/rest/compton_fragments/set_tint.go index 760ef8fb..2b0ec06e 100644 --- a/rest/compton_fragments/set_tint.go +++ b/rest/compton_fragments/set_tint.go @@ -3,11 +3,12 @@ package compton_fragments import ( "github.com/arelate/vangogh_local_data" "github.com/boggydigital/compton" + "github.com/boggydigital/issa" "github.com/boggydigital/kevlar" ) func SetTint(id string, p compton.Element, rdx kevlar.ReadableRedux) { - if repColor, ok := rdx.GetLastVal(vangogh_local_data.RepImageColorProperty, id); ok { + if repColor, ok := rdx.GetLastVal(vangogh_local_data.RepImageColorProperty, id); ok && repColor != issa.NeutralRepColor { p.SetAttribute("style", "background-color:color-mix(in display-p3,"+repColor+" var(--cma),var(--c-background))") } }