Merge pull request #36 from RobotsAndPencils/bug/acknowledgementDark

Fixes acknowledgment screen in darkmode
This commit is contained in:
Brandon Evans 2020-12-30 22:04:51 -07:00 committed by GitHub
commit ee08684e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
import SwiftUI
struct AcknowledgmentsView: View {
var body: some View {
ScrollingTextView(
attributedString: NSAttributedString(
rtf: try! Data(contentsOf: Bundle.main.url(forResource: "Licenses", withExtension: "rtf")!),
documentAttributes: nil
)!
.addingAttribute(.foregroundColor, value: NSColor.labelColor)
)
.frame(minWidth: 500, minHeight: 500)
}