From 0a129a081fb566a6bca82bdff330293340bf52c7 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 19 Jan 2025 21:42:16 +0100 Subject: [PATCH] timerlist: mark remote timers with different text colors Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/23eb0168c192a50a7400003eaff49bd5b70fbddc Author: vanhofen Date: 2025-01-19 (Sun, 19 Jan 2025) Origin message was: ------------------ - timerlist: mark remote timers with different text colors ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index bdb2aedc7..5930cb6cd 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1234,8 +1234,12 @@ void CTimerList::paintItem(int pos) CTimerd::responseGetTimer &timer = timerlist[currpos]; if (timer.eventType == CTimerd::TIMER_REMOTEBOX) { - color = COL_MENUCONTENTINACTIVE_TEXT; - bgcolor = COL_MENUCONTENTINACTIVE_PLUS_0; + // mark remote timers with different text colors + if (i_selected || i_marked) + color = COL_MENUCONTENTSELECTED_TEXT_PLUS_2; + else + color = COL_MENUCONTENTINACTIVE_TEXT; + } char zAlarmTime[25] = {0}; struct tm *alarmTime = localtime(&(timer.alarmTime));