#include "public_editor.h"
#include "utils.h"
#include "canvas_impl.h"
+#include "ardour_ui.h"
#include "i18n.h"
mark->property_fill_color_rgba() = rgba;
mark->property_outline_color_rgba() = rgba;
mark->property_width_pixels() = 1;
- Pango::FontDescription font = get_font_for_style (N_("MarkerText"));
+ Pango::FontDescription* font = get_font_for_style (N_("MarkerText"));
text = new Text (*group);
text->property_text() = annotation.c_str();
- text->property_font_desc() = font;
+ text->property_font_desc() = *font;
+
+ delete font;
+
if (annotate_left) {
text->property_x() = -(text->property_text_width());
} else {
}
text->property_y() = 0.0;
text->property_anchor() = Gtk::ANCHOR_NW;
- text->property_fill_color() = "black";
+ text->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_MarkerLabel.get();
editor.ZoomChanged.connect (mem_fun (*this, &Marker::reposition));