diff --git a/lib/timetable/lesson.dart b/lib/timetable/lesson.dart index 64c12789569ccdcc9260b7939bc324bd739a5119..9b31155c9f2b6af50eeae3522eeec4a2f0129437 100644 --- a/lib/timetable/lesson.dart +++ b/lib/timetable/lesson.dart @@ -49,7 +49,7 @@ class LessonWidget extends StatelessWidget { padding: const EdgeInsets.symmetric(horizontal: 1), child: Material( elevation: 2, - color: Theme.of(context).primaryColor, + color: Theme.of(context).colorScheme.primary, borderRadius: BorderRadius.circular(6), clipBehavior: Clip.antiAlias, child: InkWell( diff --git a/lib/timetable/lesson_chip.dart b/lib/timetable/lesson_chip.dart index 2847db3389d56642dde2064a133c27b92c7d0c96..a5c9a8369ad0ed928cd6a09f1e7205817118ff3f 100644 --- a/lib/timetable/lesson_chip.dart +++ b/lib/timetable/lesson_chip.dart @@ -13,7 +13,7 @@ class LessonChip extends StatelessWidget { required bool pressable, }) { final theme = Theme.of(context); - return pressable ? theme.primaryColor : theme.iconTheme.color!; + return pressable ? theme.colorScheme.primary : theme.iconTheme.color!; } static WidgetStateColor getTextColor(BuildContext context) => diff --git a/lib/timetable/lesson_label.dart b/lib/timetable/lesson_label.dart index 1cd81799614a35d27eddb4a6866f067df890d42d..b0461a026306e33cee579806281dae07c63660be 100644 --- a/lib/timetable/lesson_label.dart +++ b/lib/timetable/lesson_label.dart @@ -22,7 +22,10 @@ class LessonLabel extends StatelessWidget { const TextSpan(text: '\n'), TextSpan(text: lecture), ], - style: Theme.of(context).primaryTextTheme.bodySmall!, + style: Theme.of(context) + .primaryTextTheme + .bodySmall! + .copyWith(color: Theme.of(context).colorScheme.onPrimary), ), textAlign: TextAlign.center, );