From 5ff3453b307a0747dc046c22dfe4114f273543f9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Jul 2020 04:42:07 +0200 Subject: [PATCH] Update Ardour*Spacer to use theme color --- libs/widgets/widgets/ardour_spacer.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/widgets/widgets/ardour_spacer.h b/libs/widgets/widgets/ardour_spacer.h index 0e98c9f1c9..4b2f8b1f2a 100644 --- a/libs/widgets/widgets/ardour_spacer.h +++ b/libs/widgets/widgets/ardour_spacer.h @@ -22,6 +22,8 @@ #define _WIDGETS_ARDOUR_SPACER_H_ #include "gtkmm2ext/cairo_widget.h" +#include "gtkmm2ext/colors.h" +#include "widgets/ui_config.h" #include "widgets/visibility.h" @@ -40,7 +42,8 @@ protected: float h = height * ratio; float t = .5f * (height - h); ctx->rectangle (0, t, 1, h); - ctx->set_source_rgb (0, 0, 0); + uint32_t c = UIConfigurationBase::instance().color ("neutral:backgroundest"); + Gtkmm2ext::set_source_rgba (ctx, c); ctx->fill (); } @@ -66,7 +69,8 @@ protected: float w = width * ratio; float t = .5f * (width - w); ctx->rectangle (t, 0, w, 1); - ctx->set_source_rgb (0, 0, 0); + uint32_t c = UIConfigurationBase::instance().color ("neutral:backgroundest"); + Gtkmm2ext::set_source_rgba (ctx, c); ctx->fill (); }