From 01068cd7989db5b7eb2621e3e50b6948afc1b1f5 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 1 Nov 2020 01:26:14 +0000 Subject: [PATCH] Fixed a theming issue with the new header style. --- src/musikcube/cursespp/Colors.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/musikcube/cursespp/Colors.cpp b/src/musikcube/cursespp/Colors.cpp index 9fa8d12c8..6a4dcc1b3 100755 --- a/src/musikcube/cursespp/Colors.cpp +++ b/src/musikcube/cursespp/Colors.cpp @@ -356,7 +356,8 @@ struct Theme { #ifdef WIN32 bgType = Colors::Theme; #endif - int backgroundId = (bgType == Colors::BgType::Theme) ? background.Id(mode, -1) : -1; + bool transparent = (bgType == Colors::BgType::Inherit); + int backgroundId = transparent ? -1 : background.Id(mode, -1); int foregroundId = foreground.Id(mode, -1); /* main */ @@ -408,7 +409,7 @@ struct Theme { init_pair( Color::Header, headerForeground.Id(mode, COLOR_WHITE), - headerBackground.Id(mode, -1)); + transparent ? -1 : headerBackground.Id(mode, -1)); /* footer */ init_pair(