added a mark to substituted lectures

This commit is contained in:
Odweta
2024-11-29 18:41:48 +01:00
parent 87470effcd
commit 509f7f33a7
2 changed files with 25 additions and 7 deletions
@@ -286,7 +286,6 @@ class Parsing {
finalSubjects.addAll(newSubjects.reversed())
finalSubjects.addAll(auxSubjects)
for ((i, s) in auxSubjects.withIndex()) {
if (s.free) {
s.start = auxSubjects[i-1].end
@@ -268,12 +268,31 @@ private fun DayScreen(day: Day) {
horizontalAlignment = Alignment.Start
) {
if (!subject.free) {
Text(
text = subject.name.uppercase(),
color = Color.White,
fontSize = 25.sp,
fontWeight = FontWeight.Bold
)
if (subject.substitute == "1") {
Row {
Text(
text = subject.name.uppercase(),
color = Color.White,
fontSize = 25.sp,
fontWeight = FontWeight.Bold
)
Spacer(modifier = Modifier.width(10.dp))
Text(
text = " supl ",
color = Color.Black,
modifier = Modifier.background(color = Color.White)
)
}
} else {
Text(
text = subject.name.uppercase(),
color = Color.White,
fontSize = 25.sp,
fontWeight = FontWeight.Bold
)
}
}
Text(