13
0

make verbose canvas cursor color be set in its constructor rather than explicitly

This commit is contained in:
Paul Davis 2014-06-27 09:35:19 -04:00
parent 353f857d6e
commit 0a9595f74f
3 changed files with 1 additions and 9 deletions

View File

@ -868,7 +868,6 @@ Editor::color_handler()
bbt_ruler->set_outline_color (text);
playhead_cursor->set_color (ARDOUR_UI::config()->get_canvasvar_PlayHead());
_verbose_cursor->set_color (ARDOUR_UI::config()->get_canvasvar_VerboseCanvasCursor());
meter_bar->set_fill_color (ARDOUR_UI::config()->get_canvasvar_MeterBar());
meter_bar->set_outline_color (ARDOUR_UI::config()->get_canvasvar_MarkerBarSeparator());

View File

@ -44,6 +44,7 @@ VerboseCursor::VerboseCursor (Editor* editor)
_canvas_item = new ArdourCanvas::TrackingText (_editor->get_noscroll_group());
CANVAS_DEBUG_NAME (_canvas_item, "verbose canvas cursor");
_canvas_item->set_font_description (Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_LargerBoldFont()));
_canvas_item->set_color (ARDOUR_UI::config()->get_canvasvar_VerboseCanvasCursor());
}
ArdourCanvas::Item *
@ -220,12 +221,6 @@ VerboseCursor::set_duration (framepos_t start, framepos_t end)
_canvas_item->set (buf);
}
void
VerboseCursor::set_color (uint32_t color)
{
_canvas_item->set_color (color);
}
bool
VerboseCursor::visible () const
{

View File

@ -34,8 +34,6 @@ public:
ArdourCanvas::Item* canvas_item () const;
bool visible () const;
void set_color (uint32_t);
void set (std::string const &);
void set_time (framepos_t);
void set_duration (framepos_t, framepos_t);