Highlight moving meters in a different color.

This commit is contained in:
Hisham Muhammad
2015-11-02 10:33:37 -05:00
parent f187be9296
commit 3cfbcb72c8
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,7 @@ static HandlerResult ColumnsPanel_eventHandler(Panel* super, int ch) {
{
if (selected < size - 1) {
this->moving = !(this->moving);
Panel_setSelectionColor(super, this->moving ? CRT_colors[PANEL_SELECTION_FOLLOW] : CRT_colors[PANEL_SELECTION_FOCUS]);
((ListItem*)Panel_getSelected(super))->moving = this->moving;
result = HANDLED;
}