mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2026-04-28 18:30:09 +00:00
💄 Refactoring color management and extending to all views
- Thanks to @liza-kl for the color scheme <3
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user