added a mark to substituted lectures
This commit is contained in:
@@ -286,7 +286,6 @@ class Parsing {
|
|||||||
finalSubjects.addAll(newSubjects.reversed())
|
finalSubjects.addAll(newSubjects.reversed())
|
||||||
finalSubjects.addAll(auxSubjects)
|
finalSubjects.addAll(auxSubjects)
|
||||||
|
|
||||||
|
|
||||||
for ((i, s) in auxSubjects.withIndex()) {
|
for ((i, s) in auxSubjects.withIndex()) {
|
||||||
if (s.free) {
|
if (s.free) {
|
||||||
s.start = auxSubjects[i-1].end
|
s.start = auxSubjects[i-1].end
|
||||||
|
|||||||
@@ -268,12 +268,31 @@ private fun DayScreen(day: Day) {
|
|||||||
horizontalAlignment = Alignment.Start
|
horizontalAlignment = Alignment.Start
|
||||||
) {
|
) {
|
||||||
if (!subject.free) {
|
if (!subject.free) {
|
||||||
|
if (subject.substitute == "1") {
|
||||||
|
Row {
|
||||||
Text(
|
Text(
|
||||||
text = subject.name.uppercase(),
|
text = subject.name.uppercase(),
|
||||||
color = Color.White,
|
color = Color.White,
|
||||||
fontSize = 25.sp,
|
fontSize = 25.sp,
|
||||||
fontWeight = FontWeight.Bold
|
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(
|
Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user