Use CGColor and remove PlatformColor

This commit is contained in:
Guille Gonzalez
2026-01-04 07:09:56 +01:00
parent fe6df90c4a
commit 6e1a38ede7
5 changed files with 33 additions and 41 deletions

View File

@@ -5,8 +5,8 @@ import Foundation
extension CGContext {
func draw(_ displayNode: Math.DisplayNode, foregroundColor: CGColor) {
let foregroundColor =
displayNode.localTextColor?.cgColor
?? displayNode.textColor?.cgColor
displayNode.localTextColor
?? displayNode.textColor
?? foregroundColor
switch displayNode {