From 3cfbcb72c8b36b3d9be5082053933abc60c849d1 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 2 Nov 2015 10:33:37 -0500 Subject: Highlight moving meters in a different color. --- MetersPanel.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MetersPanel.c') diff --git a/MetersPanel.c b/MetersPanel.c index 927d10c0..db910fb9 100644 --- a/MetersPanel.c +++ b/MetersPanel.c @@ -9,6 +9,7 @@ in the source distribution for its full text. #include #include +#include "CRT.h" /*{ #include "Panel.h" @@ -51,8 +52,10 @@ void MetersPanel_setMoving(MetersPanel* this, bool moving) { this->moving = moving; ((ListItem*)Panel_getSelected(super))->moving = moving; if (!moving) { + Panel_setSelectionColor(super, CRT_colors[PANEL_SELECTION_FOCUS]); Panel_setDefaultBar(super); } else { + Panel_setSelectionColor(super, CRT_colors[PANEL_SELECTION_FOLLOW]); super->currentBar = Meters_movingBar; } } -- cgit v1.2.3