krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 014330d266

014330d2668d67d33f537d2cebcbdd09a019a61f

parent: 4470fe4d25

Unsigned

cmc <hello@cleberg.net> · 2026-10-18 04:50 UTC

Black background outside the Sky tab (!17)

- Sun, System, Launches, Library and first-run screens use pure black, so SDO, Hubble and NASA images with black backgrounds blend in.
- The Sky tab, widgets and Live Activity keep the night-blue.

Checked in the iOS 27 simulator (Sun tab with the SDO image).

Layout: unified · split

App/Sources/LaunchesScreen.swift +1 −1
@@ -13,7 +13,7 @@ struct LaunchesScreen: View {
1313
1414 private let ink = Color(red: 0.95, green: 0.95, blue: 0.93)
1515 private let accent = Color(red: 0.88, green: 0.24, blue: 0.19)
16 private let background = Color(red: 0.043, green: 0.078, blue: 0.141)
16 private let background = Color.black
1717
1818 var body: some View {
1919 ScrollView {
App/Sources/LibraryScreen.swift +1 −1
@@ -3,7 +3,7 @@ import SwiftUI
33
44private let ink = Color(red: 0.95, green: 0.95, blue: 0.93)
55private let accent = Color(red: 0.88, green: 0.24, blue: 0.19)
6private let pageBackground = Color(red: 0.043, green: 0.078, blue: 0.141)
6private let pageBackground = Color.black
77
88struct LibraryScreen: View {
99 @State private var query = ""
App/Sources/OnboardingScreen.swift +1 −1
@@ -11,7 +11,7 @@ struct OnboardingScreen: View {
1111
1212 private let ink = Color(red: 0.95, green: 0.95, blue: 0.93)
1313 private let accent = Color(red: 0.88, green: 0.24, blue: 0.19)
14 private let background = Color(red: 0.043, green: 0.078, blue: 0.141)
14 private let background = Color.black
1515
1616 var body: some View {
1717 VStack(alignment: .leading, spacing: 0) {
App/Sources/SunScreen.swift +1 −1
@@ -14,7 +14,7 @@ struct SunScreen: View {
1414
1515 private let ink = Color(red: 0.95, green: 0.95, blue: 0.93)
1616 private let accent = Color(red: 0.88, green: 0.24, blue: 0.19)
17 private let background = Color(red: 0.043, green: 0.078, blue: 0.141)
17 private let background = Color.black
1818
1919 var body: some View {
2020 ScrollView {
App/Sources/SystemScreen.swift +1 −1
@@ -10,7 +10,7 @@ struct SystemScreen: View {
1010
1111 private let ink = Color(red: 0.95, green: 0.95, blue: 0.93)
1212 private let accent = Color(red: 0.88, green: 0.24, blue: 0.19)
13 private let background = Color(red: 0.043, green: 0.078, blue: 0.141)
13 private let background = Color.black
1414
1515 private static let start = Date(timeIntervalSince1970: -378_691_200) // 1958-01-01
1616 private static let end = Date(timeIntervalSince1970: 2_524_608_000) // 2050-01-01