experiment with unicode circle for rec-en

fixes button-area width mismatch on track-headers
except for tape-tracks (which till use old fixed size icon)
This commit is contained in:
Robin Gareus 2014-08-29 01:13:49 +02:00
parent 392f4847b0
commit 7be3c88a3e
3 changed files with 8 additions and 6 deletions

View File

@ -355,7 +355,7 @@ void
MeterStrip::set_button_names()
{
mute_button->set_text (_("M"));
rec_enable_button->set_text ("");
rec_enable_button->set_markup ("<span color=\"#cc0000\">\u25CF</span>");
if (_route && _route->solo_safe()) {
solo_button->set_visual_state (Gtkmm2ext::VisualState (solo_button->visual_state() | Gtkmm2ext::Insensitive));

View File

@ -171,9 +171,11 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
switch (track()->mode()) {
case ARDOUR::Normal:
case ARDOUR::NonLayered:
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
rec_enable_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
rec_enable_button->set_markup ("<span color=\"#cc0000\">\u25CF</span>");
break;
case ARDOUR::Destructive:
rec_enable_button->set_text (string());
rec_enable_button->set_image (::get_icon (X_("record_tape_red")));
break;
}
@ -803,12 +805,12 @@ RouteTimeAxisView::set_track_mode (TrackMode mode, bool apply_to_selection)
switch (mode) {
case ARDOUR::NonLayered:
case ARDOUR::Normal:
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
rec_enable_button->set_text (string());
rec_enable_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
rec_enable_button->set_markup ("<span color=\"#cc0000\">\u25CF</span>");
break;
case ARDOUR::Destructive:
rec_enable_button->set_image (::get_icon (X_("record_tape_red")));
rec_enable_button->set_text (string());
rec_enable_button->set_image (::get_icon (X_("record_tape_red")));
break;
}

View File

@ -144,7 +144,7 @@ RouteUI::init ()
rec_enable_button = manage (new ArdourButton);
rec_enable_button->set_name ("record enable button");
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
rec_enable_button->set_markup ("<span weight=\"bold\" color=\"#cc0000\">\u2B24</span>");
UI::instance()->set_tip (rec_enable_button, _("Enable recording on this track"), "");
rec_blink_connection = ARDOUR_UI::instance()->Blink.connect (sigc::mem_fun (*this, &RouteUI::blink_rec_display));