Skip to content

Commit aa803e8

Browse files
client: competence WIP
1 parent ac8e57c commit aa803e8

5 files changed

Lines changed: 474 additions & 508 deletions

File tree

school_data_hub_flutter/lib/common/theme/app_colors.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,16 @@ class AppColors {
504504
return Colors.white;
505505
}
506506

507+
static Color readableOnWhiteBackgroungColor(Color color) {
508+
if (color == palette.musicColor) {
509+
return const Color.fromARGB(255, 99, 179, 103);
510+
}
511+
if (color == palette.artColor) {
512+
return const Color.fromARGB(255, 252, 134, 0);
513+
}
514+
return color;
515+
}
516+
507517
//- text colors
508518
static Color get ogsColor => palette.ogsColor;
509519
static Color get groupColor => palette.groupColor;

0 commit comments

Comments
 (0)