Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit ff8b97d

Browse files
authored
Merge pull request #93 from HackIllinois/rauhul/theme
Day night theme
2 parents 02a1c33 + 2533b85 commit ff8b97d

File tree

56 files changed

+1359
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1359
-760
lines changed

HackIllinois.xcodeproj/project.pbxproj

Lines changed: 114 additions & 54 deletions
Large diffs are not rendered by default.

HackIllinois/Animations/Countdown/countdown-24.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

HackIllinois/Animations/Countdown/countdown-60.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

HackIllinois/Animations/Refresh/refresh.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

HackIllinois/AppDelegate.swift

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1818
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1919
setupNavigationBarAppearance()
2020
setupTableViewAppearance()
21+
_ = HIThemeEngine.shared
2122
HIApplicationStateController.shared.initalize()
2223
// locationManager.requestWhenInUseAuthorization()
2324
// locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers
@@ -57,28 +58,15 @@ extension AppDelegate {
5758
func setupNavigationBarAppearance() {
5859
let navigationBarAppearace = UINavigationBar.appearance()
5960

60-
navigationBarAppearace.tintColor = HIApplication.Color.hotPink
61-
navigationBarAppearace.barTintColor = HIApplication.Color.paleBlue
6261
navigationBarAppearace.titleTextAttributes = [
63-
NSAttributedStringKey.foregroundColor: HIApplication.Color.darkIndigo as Any,
6462
NSAttributedStringKey.font: UIFont.systemFont(ofSize: 15, weight: .bold) as Any
6563
]
6664
navigationBarAppearace.shadowImage = UIImage()
67-
68-
let rect = CGRect(x: 0, y: 0, width: 1, height: 1)
69-
UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
70-
HIApplication.Color.paleBlue.setFill()
71-
UIRectFill(rect)
72-
let image = UIGraphicsGetImageFromCurrentImageContext()
73-
UIGraphicsEndImageContext()
74-
75-
navigationBarAppearace.setBackgroundImage(image, for: .default)
7665
navigationBarAppearace.isTranslucent = false
7766
}
7867

7968
func setupTableViewAppearance() {
8069
let tableViewAppearance = UITableView.appearance()
81-
tableViewAppearance.backgroundColor = HIApplication.Color.paleBlue
8270
tableViewAppearance.separatorStyle = .none
8371
tableViewAppearance.tableHeaderView = UIView(frame: CGRect(x: 0, y: 0, width: CGFloat.leastNonzeroMagnitude, height: CGFloat.leastNonzeroMagnitude))
8472
tableViewAppearance.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: CGFloat.leastNonzeroMagnitude, height: CGFloat.leastNonzeroMagnitude))

HackIllinois/Assets.xcassets/darkBlueGrey.colorset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"color" : {
1010
"color-space" : "srgb",
1111
"components" : {
12-
"red" : "0.059",
12+
"red" : "0x0F",
1313
"alpha" : "1.000",
14-
"blue" : "0.184",
15-
"green" : "0.071"
14+
"blue" : "0x2E",
15+
"green" : "0x12"
1616
}
1717
}
1818
}

HackIllinois/Assets.xcassets/darkIndigo.colorset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"color" : {
1010
"color-space" : "srgb",
1111
"components" : {
12-
"green" : "0.020",
12+
"red" : "0x1C",
1313
"alpha" : "1.000",
14-
"red" : "0.110",
15-
"blue" : "0.369"
14+
"blue" : "0x5E",
15+
"green" : "0x05"
1616
}
1717
}
1818
}

HackIllinois/Assets.xcassets/hotPink.colorset/Contents.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"info" : {
33
"version" : 1,
4-
"author" : "zeplin"
4+
"author" : "xcode"
55
},
66
"colors" : [
77
{
88
"idiom" : "universal",
99
"color" : {
1010
"color-space" : "srgb",
1111
"components" : {
12-
"green" : "0.000",
12+
"red" : "0xEC",
1313
"alpha" : "1.000",
14-
"red" : "0.929",
15-
"blue" : "0.549"
14+
"blue" : "0x8B",
15+
"green" : "0x00"
1616
}
1717
}
1818
}

HackIllinois/Assets.xcassets/lightPeriwinkle.colorset/Contents.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"info" : {
33
"version" : 1,
4-
"author" : "zeplin"
4+
"author" : "xcode"
55
},
66
"colors" : [
77
{
88
"idiom" : "universal",
99
"color" : {
1010
"color-space" : "srgb",
1111
"components" : {
12-
"green" : "0.851",
12+
"red" : "0xCC",
1313
"alpha" : "1.000",
14-
"red" : "0.800",
15-
"blue" : "0.988"
14+
"blue" : "0xFB",
15+
"green" : "0xD9"
1616
}
1717
}
1818
}

HackIllinois/Assets.xcassets/paleBlue.colorset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"color" : {
1010
"color-space" : "srgb",
1111
"components" : {
12-
"green" : "0.961",
12+
"red" : "0xF1",
1313
"alpha" : "1.000",
14-
"red" : "0.949",
15-
"blue" : "0.996"
14+
"blue" : "0xFD",
15+
"green" : "0xF5"
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)