Fix wrong colors in PDF export
This commit is contained in:
@ -3,6 +3,9 @@ import SFSafeSymbols
|
||||
|
||||
struct CareerStationView: View {
|
||||
|
||||
@Environment(\.colorScheme)
|
||||
var colorScheme: ColorScheme
|
||||
|
||||
let info: CareerStation
|
||||
|
||||
let borderSpacing: CGFloat
|
||||
@ -20,7 +23,7 @@ struct CareerStationView: View {
|
||||
RightImageLabel(info.location, systemSymbol: .house)
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
.foregroundColor(colorScheme.secondaryColor)
|
||||
Text(info.title)
|
||||
.font(.headline)
|
||||
.fontWeight(.regular)
|
||||
@ -32,7 +35,7 @@ struct CareerStationView: View {
|
||||
if let text = info.text {
|
||||
Text(text)
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
.foregroundColor(colorScheme.secondaryColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
import SwiftUI
|
||||
|
||||
struct PublicationView: View {
|
||||
|
||||
|
||||
@Environment(\.colorScheme)
|
||||
var colorScheme: ColorScheme
|
||||
|
||||
let info: Publication
|
||||
|
||||
let borderSpacing: CGFloat
|
||||
@ -15,10 +18,11 @@ struct PublicationView: View {
|
||||
VStack(alignment: .leading) {
|
||||
Text(info.venue)
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
.foregroundColor(colorScheme.secondaryColor)
|
||||
Text(info.title)
|
||||
.font(.subheadline)
|
||||
.fontWeight(.regular)
|
||||
.foregroundColor(colorScheme.primaryColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user