💄 Refactoring color management and extending to all views

- Thanks to @liza-kl for the color scheme <3
This commit is contained in:
2021-07-08 18:27:49 +02:00
committed by Patrick Müller
parent c49c5186e1
commit 600f4c9c76
7 changed files with 125 additions and 16 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ struct HomeView: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.darkModePrimaryColor)
.fill(Color.primaryColor)
)
Spacer()
}
@@ -60,7 +60,7 @@ struct HomeView: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.darkModePrimaryColor)
.fill(Color.primaryColor)
)
Spacer()
}
@@ -247,7 +247,7 @@ struct UpcomingLecturesBlock: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.darkModePrimaryColor)
.fill(Color.primaryColor)
)
}
}
@@ -276,7 +276,7 @@ struct UpcomingExamsBlock: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.darkModePrimaryColor)
.fill(Color.primaryColor)
)
.overlay(
RoundedRectangle(cornerRadius: 10)
@@ -54,7 +54,7 @@ struct LecturePlanItem: View {
}
}
.padding()
.foregroundColor(.white)
.foregroundColor(.primary)
.background(Color.blue)
.cornerRadius(15)
Spacer()
@@ -63,7 +63,7 @@ struct LecturePlanItem: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.gray)
.fill(Color.primaryColor)
)
Spacer()
}
@@ -198,7 +198,7 @@ struct DayWithEventsBlock: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color(#colorLiteral(red: 0.2549019754, green: 0.2745098174, blue: 0.3019607961, alpha: 1)))
.fill(Color.darkColor)
)
}
// When an event gets updated from child view, reload it here as this will not trigger the onAppear() function
@@ -228,7 +228,7 @@ struct DayWithEventsBlock: View {
.padding()
.background(
RoundedRectangle(cornerRadius: 10)
.fill(Color.gray)
.fill(Color.primaryColor)
)
}
}