summaryrefslogtreecommitdiffstats
path: root/MetersPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-11-02 10:33:37 -0500
committerHisham Muhammad <hisham@gobolinux.org>2015-11-02 10:33:37 -0500
commit3cfbcb72c8b36b3d9be5082053933abc60c849d1 (patch)
tree3d334bb0611598a5960e1775f05056f8b4320741 /MetersPanel.c
parentf187be92968fdf0563c17f2f8a8815ca942ed0f6 (diff)
Highlight moving meters in a different color.
Diffstat (limited to 'MetersPanel.c')
-rw-r--r--MetersPanel.c3
1 files changed, 3 insertions, 0 deletions
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 <stdlib.h>
#include <assert.h>
+#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;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy