diff options
author | Carl Hetherington <carl@carlh.net> | 2011-05-16 18:18:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-05-16 18:18:13 +0000 |
commit | 739030372838d0eb71481ed8a4750fe9df6f2945 (patch) | |
tree | 39d33c6e0112bab5e9c53d0545e18d3f0ca3c079 /gtk2_ardour/midi_channel_selector.cc | |
parent | 29dd7bbac783b3f28527c7aa5a7a1fbe94e84e08 (diff) |
Make MIDI channel selector button colours more distinct (#3772).
git-svn-id: svn://localhost/ardour2/branches/3.0@9524 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_channel_selector.cc')
-rw-r--r-- | gtk2_ardour/midi_channel_selector.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_channel_selector.cc b/gtk2_ardour/midi_channel_selector.cc index e5416c81ff..cdaf42e51f 100644 --- a/gtk2_ardour/midi_channel_selector.cc +++ b/gtk2_ardour/midi_channel_selector.cc @@ -52,11 +52,11 @@ MidiChannelSelector::MidiChannelSelector(int n_rows, int n_columns, int start_ro sigc::mem_fun(this, &MidiChannelSelector::button_toggled), &_buttons[row][column], channel_nr - 1)); + _buttons[row][column].set_widget_name (X_("MidiChannelSelectorButton")); _buttons[row][column].signal_button_release_event().connect( sigc::mem_fun(this, &MidiChannelSelector::was_clicked), false); - int table_row = start_row + row; int table_column = start_column + column; attach(_buttons[row][column], table_column, table_column + 1, table_row, table_row + 1); @@ -95,8 +95,10 @@ MidiChannelSelector::set_default_channel_color() { for (int row = 0; row < 4; ++row) { for (int column = 0; column < 4; ++column) { - _buttons[row][column].unset_bg(STATE_NORMAL); - _buttons[row][column].unset_bg(STATE_ACTIVE); + _buttons[row][column].unset_fg (STATE_NORMAL); + _buttons[row][column].unset_fg (STATE_ACTIVE); + _buttons[row][column].unset_bg (STATE_NORMAL); + _buttons[row][column].unset_bg (STATE_ACTIVE); } } } |