From 6572b98d697fef50473366bf4b598e66c0be3e54 Mon Sep 17 00:00:00 2001 From: jeron Date: Tue, 26 Dec 2023 20:22:13 -0300 Subject: [PATCH] Fix status bar background color I don't know if this is the best way to do it but this one-liner makes it look exactly like dwm's. Co-authored-by: Raphael Robatsch --- src/bar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bar.cpp b/src/bar.cpp index af92f49..2f88fa3 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -266,7 +266,11 @@ void Bar::renderStatus() cairo_fill(_painter); _x = start; - renderComponent(_statusCmp); + setColorScheme(colorInactive, false); + if (_statusCmp.width() > 0) + { + renderComponent(_statusCmp); + } } void Bar::setColorScheme(const ColorScheme& scheme, bool invert)