Force light theme
This commit is contained in:
@@ -32,6 +32,7 @@ struct Application: App {
|
|||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
appCoordinator.toPresentable()
|
appCoordinator.toPresentable()
|
||||||
|
.preferredColorScheme(.light) // Letro: always use the light theme
|
||||||
.statusBarHidden(shouldHideStatusBar)
|
.statusBarHidden(shouldHideStatusBar)
|
||||||
.overlay(alignment: .top) {
|
.overlay(alignment: .top) {
|
||||||
if #available(iOS 26, *), ProcessInfo.processInfo.isiOSAppOnMac {
|
if #available(iOS 26, *), ProcessInfo.processInfo.isiOSAppOnMac {
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ struct AuthenticationStartScreen: View {
|
|||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
letroAbout
|
letroAbout
|
||||||
|
.foregroundStyle(.white)
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -210,9 +211,12 @@ struct AuthenticationStartScreen: View {
|
|||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text("Get Started")
|
Text("Get Started")
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
.frame(height: 48)
|
||||||
|
.background(.white)
|
||||||
|
.cornerRadius(28)
|
||||||
}
|
}
|
||||||
.buttonStyle(.compound(.primary))
|
.buttonStyle(PlainButtonStyle())
|
||||||
.preferredColorScheme(.dark)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
@@ -223,12 +227,10 @@ struct AuthenticationStartScreen: View {
|
|||||||
VStack(spacing: 16) {
|
VStack(spacing: 16) {
|
||||||
Text("Letro, Official & Secure")
|
Text("Letro, Official & Secure")
|
||||||
.font(.compound.headingLGBold)
|
.font(.compound.headingLGBold)
|
||||||
.foregroundColor(.compound.textPrimary)
|
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
|
|
||||||
Text("We Make Formal Communication a Reliable, Attractive Thing.")
|
Text("We Make Formal Communication a Reliable, Attractive Thing.")
|
||||||
.font(.compound.bodyLG)
|
.font(.compound.bodyLG)
|
||||||
.foregroundColor(.compound.textPrimary)
|
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user