Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Sources/Panels/CloudVMLoadingPanelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ struct CloudVMLoadingPanelView: View {
}

private func baseContent(elapsedSeconds: Int) -> some View {
VStack(spacing: 14) {
// Match semantic text colors to the terminal background, which can
// differ from the system appearance.
let backgroundColor = GhosttyApp.shared.defaultBackgroundColor
let readableScheme = WindowChromeColorResolver().readableColorScheme(for: backgroundColor)
return VStack(spacing: 14) {
switch panel.phase {
case .loading(let loadingHeadline):
if let loadingHeadline {
Expand Down Expand Up @@ -97,7 +101,8 @@ struct CloudVMLoadingPanelView: View {
}
.padding(32)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color(nsColor: GhosttyApp.shared.defaultBackgroundColor))
.background(Color(nsColor: backgroundColor))
.environment(\.colorScheme, readableScheme)
}
}

Expand Down
Loading