using namespace std;
using namespace Gtk;
using namespace Gtkmm2ext;
+using namespace ARDOUR_UI_UTILS;
static const int pos_box_size = 9;
static const int lr_box_size = 15;
if (!have_font) {
Pango::FontDescription font;
Pango::AttrFontDesc* font_attr;
- font = Pango::FontDescription ("ArdourMono");
- font.set_weight (Pango::WEIGHT_BOLD);
- font.set_size(9 * PANGO_SCALE);
+ font = Pango::FontDescription (ARDOUR_UI::config()->get_SmallBoldMonospaceFont());
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
panner_font_attributes.change(*font_attr);
delete font_attr;
t = 0x606060ff;
}
+ if (_send_mode) {
+ b = ARDOUR_UI::config()->color ("send bg");
+ }
/* background */
context->set_source_rgba (UINT_RGBA_R_FLT(b), UINT_RGBA_G_FLT(b), UINT_RGBA_B_FLT(b), UINT_RGBA_A_FLT(b));
context->rectangle (0, 0, width, height);
void
MonoPanner::set_colors ()
{
- colors.fill = ARDOUR_UI::config()->get_canvasvar_MonoPannerFill();
- colors.outline = ARDOUR_UI::config()->get_canvasvar_MonoPannerOutline();
- colors.text = ARDOUR_UI::config()->get_canvasvar_MonoPannerText();
- colors.background = ARDOUR_UI::config()->get_canvasvar_MonoPannerBackground();
- colors.pos_outline = ARDOUR_UI::config()->get_canvasvar_MonoPannerPositionOutline();
- colors.pos_fill = ARDOUR_UI::config()->get_canvasvar_MonoPannerPositionFill();
+ colors.fill = ARDOUR_UI::config()->get_MonoPannerFill();
+ colors.outline = ARDOUR_UI::config()->get_MonoPannerOutline();
+ colors.text = ARDOUR_UI::config()->get_MonoPannerText();
+ colors.background = ARDOUR_UI::config()->get_MonoPannerBackground();
+ colors.pos_outline = ARDOUR_UI::config()->get_MonoPannerPositionOutline();
+ colors.pos_fill = ARDOUR_UI::config()->get_MonoPannerPositionFill();
}
void