4 Commits

Author SHA1 Message Date
Paddy 600f4c9c76 💄 Refactoring color management and extending to all views
- Thanks to @liza-kl for the color scheme <3
2021-07-08 18:27:49 +02:00
Paddy c49c5186e1 Merge remote-tracking branch 'refs/remotes/origin/main' 2021-05-14 20:39:24 +02:00
Paddy 476e1caf9e 👥 Adding Lisa as contributor 2021-05-14 20:37:57 +02:00
Patrick 1431720850 Update README.md 2021-05-13 01:04:42 +02:00
9 changed files with 129 additions and 19 deletions
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "174",
"green" : "174",
"red" : "174"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.153",
"green" : "0.125",
"red" : "0.063"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "255",
"green" : "255",
"red" : "255"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "123",
"green" : "114",
"red" : "98"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "224",
"green" : "224",
"red" : "224"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "79",
"green" : "71",
"red" : "55"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
+3 -8
View File
@@ -7,12 +7,7 @@
import SwiftUI
import Foundation
extension Color {
// For Darkmode
static let darkModeDarkColor = Color(red: 16 / 255, green: 32 / 255, blue: 39 / 255)
static let darkModePrimaryColor = Color(red: 55 / 255, green: 71 / 255, blue: 79 / 255)
static let darkModeLightColor = Color(red: 98 / 255, green: 114 / 255, blue: 123 / 255)
// For Lightmode
static let lightkModeDarkColor = Color(red: 174 / 255, green: 174 / 255, blue: 174 / 255)
static let lightModePrimaryColor = Color(red: 224 / 255, green: 224 / 255, blue: 224 / 255)
static let lightModeLightColor = Color(red: 255 / 255, green: 255 / 255, blue: 255 / 255)
static let primaryColor = Color("PrimaryColor")
static let darkColor = Color("DarkColor")
static let lightColor = Color("LightColor")
}
+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)
)
}
}
@@ -13,8 +13,9 @@ struct SettingsAcknowledgements: View {
Text("contributors".localized(tableName: "General", plural: false))
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
Spacer()
Text("David Huh")
Text("Patrick Müller")
Text("David Huh (davidhuh.de)")
Text("Lisa Kletsko (li54.de)")
Text("Patrick Müller (mueller-patrick.tech)")
Spacer()
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
# DHBW-Service-App
## Introduction
This is a project by two students of the Cooperative State University in Karlsruhe (DHBW Karlsruhe).
This is a project by three students of the Cooperative State University in Karlsruhe (DHBW Karlsruhe).
The goal is to develop a native iOS app providing easy and straightforward access to services like RaPla, Dualis and the canteen plan.
<b>Disclaimer:</b> This project is not affiliated with the DHBW Karlsruhe