added timetable color substitute teachers

This commit is contained in:
2025-02-14 19:31:46 +01:00
parent 8daf57bcee
commit 769fbc1b6a
2 changed files with 4 additions and 1 deletions

View File

@ -368,6 +368,9 @@ class _TimetableState extends State<Timetable> {
// Any changes or no teacher at this element
if(webuntisElement.code == 'irregular' || webuntisElement.te.first.id == 0) return const Color(0xff8F19B3).withAlpha(alpha);
// Teacher has changed
if(webuntisElement.te.any((element) => element.orgname != null)) return const Color(0xFF29639B).withAlpha(alpha);
// Event was in the past
if(endTime.isBefore(DateTime.now())) return Theme.of(context).primaryColor.withAlpha(alpha);