From 072bf8bb4f88e2a4ee0f9c26cb609d472b48129e Mon Sep 17 00:00:00 2001 From: Kafva <36083692+Kafva@users.noreply.github.com> Date: Sat, 23 Dec 2023 18:22:37 +0100 Subject: [PATCH 1/1] Transparent background for dark mode --- ui/menuutil/menu.go | 2 +- ui/palette.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/menuutil/menu.go b/ui/menuutil/menu.go index 19db778..9a849a5 100644 --- a/ui/menuutil/menu.go +++ b/ui/menuutil/menu.go @@ -187,7 +187,7 @@ func makeMenuWithHotKeys(items []SimpleMenuItem, showKeys bool, sites SiteMap) ( framed.NewUnicode( list.New(list.NewSimpleListWalker(menu1Widgets2)), ), - gowid.MakePaletteRef("default"), + gowid.MakePaletteRef("menu"), ), ), keypress.Options{ diff --git a/ui/palette.go b/ui/palette.go index ccb4cb1..bbd5ad1 100644 --- a/ui/palette.go +++ b/ui/palette.go @@ -72,7 +72,8 @@ func SetupColors() { // DarkModePalette = gowid.Palette{ - "default": gowid.MakePaletteEntry(dfg("default"), dbg("default")), + "default": gowid.MakePaletteEntry(dfg("default"), gowid.ColorNone), + "menu": gowid.MakePaletteEntry(dfg("menu"), dbg("menu")), "title": gowid.MakeForeground(dfg("title")), "current-capture": gowid.MakeForeground(dfg("current-capture")), "packet-list-row-focus": gowid.MakePaletteEntry(dfg("packet-list-row-focus"), dbg("packet-list-row-focus")), -- 2.40.1