Skip to content

Commit a448e97

Browse files
committed
fix(html_accessory_view): html table text color
1 parent ee0f54a commit a448e97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Notification Agent.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,7 @@
36213621
repositoryURL = "https://github.com/NuPlay/RichText.git";
36223622
requirement = {
36233623
kind = upToNextMajorVersion;
3624-
minimumVersion = 2.0.0;
3624+
minimumVersion = 2.4.1;
36253625
};
36263626
};
36273627
B97F10C225DD682900E15245 /* XCRemoteSwiftPackageReference "SwiftyMarkdown" */ = {

Shared/Views/AccessoryViews/SwiftUI/AccessoryViewWrapper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ struct AccessoryViewWrapper: View {
4848
ScrollView {
4949
RichText(html: source.accessoryView.payload ?? "")
5050
.colorScheme(source.accessoryView.type == .htmlwhitebox ? .light : .auto)
51+
.customCSS("td { color: " + (source.accessoryView.type == .htmlwhitebox ? NSColor.black : NSColor.labelColor).hexString + "; }")
5152
.padding(source.accessoryView.type == .htmlwhitebox ? 4 : 0)
5253
}
5354
.frame(maxHeight: AppComponent.current == .popup ? 300 : .infinity)

0 commit comments

Comments
 (0)