MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / ColorForEntry

Function ColorForEntry

plugins/schedule/macro-schedule-tab.cpp:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// ---------------------------------------------------------------------------
93
94static QColor ColorForEntry(const MacroScheduleEntry &entry)
95{
96 if (!entry.enabled || entry.IsExpired()) {
97 return QColor(150, 150, 150);
98 }
99 return entry.color.isValid() ? entry.color : QColor(70, 130, 180);
100}
101
102// Returns one CalendarEvent per occurrence of entry within [rangeStart, rangeEnd].
103// For non-repeating entries this is at most one event.

Callers 1

EntryToCalendarEventsFunction · 0.85

Calls 1

IsExpiredMethod · 0.80

Tested by

no test coverage detected