fix comment-button highlight

This commit is contained in:
Robin Gareus 2016-06-20 00:59:07 +02:00
parent 557031ca11
commit b5a134d73a
2 changed files with 5 additions and 4 deletions

View file

@ -1491,20 +1491,20 @@ MixerStrip::setup_comment_button ()
case Wide: case Wide:
if (_route->comment().empty ()) { if (_route->comment().empty ()) {
_comment_button.unset_bg (STATE_NORMAL); _comment_button.set_name ("generic button");
_comment_button.set_text (_("Comments")); _comment_button.set_text (_("Comments"));
} else { } else {
_comment_button.modify_bg (STATE_NORMAL, color ()); _comment_button.set_name ("comment button");
_comment_button.set_text (_("*Comments*")); _comment_button.set_text (_("*Comments*"));
} }
break; break;
case Narrow: case Narrow:
if (_route->comment().empty ()) { if (_route->comment().empty ()) {
_comment_button.unset_bg (STATE_NORMAL); _comment_button.set_name ("generic button");
_comment_button.set_text (_("Cmt")); _comment_button.set_text (_("Cmt"));
} else { } else {
_comment_button.modify_bg (STATE_NORMAL, color ()); _comment_button.set_name ("comment button");
_comment_button.set_text (_("*Cmt*")); _comment_button.set_text (_("*Cmt*"));
} }
break; break;

View file

@ -139,6 +139,7 @@
<ColorAlias name="clock: cursor" alias="color 8"/> <ColorAlias name="clock: cursor" alias="color 8"/>
<ColorAlias name="clock: edited text" alias="color 8"/> <ColorAlias name="clock: edited text" alias="color 8"/>
<ColorAlias name="clock: text" alias="color 12"/> <ColorAlias name="clock: text" alias="color 12"/>
<ColorAlias name="comment button: fill" alias="color 20"/>
<ColorAlias name="control point fill" alias="color 17"/> <ColorAlias name="control point fill" alias="color 17"/>
<ColorAlias name="control point outline" alias="meter color3"/> <ColorAlias name="control point outline" alias="meter color3"/>
<ColorAlias name="control point selected fill" alias="color 72"/> <ColorAlias name="control point selected fill" alias="color 72"/>