Update Ardour*Spacer to use theme color

This commit is contained in:
Robin Gareus 2020-07-21 04:42:07 +02:00
parent e8e143bb32
commit 5ff3453b30
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();
}