Skip to content

Commit 5b26e5f

Browse files
committed
Fixed tests
1 parent ddef66c commit 5b26e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditSourceEditor/Minimap/MinimapView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class MinimapView: FlippedNSView {
7777
public init(textView: TextView, theme: EditorTheme) {
7878
self.textView = textView
7979
self.lineRenderer = MinimapLineRenderer(textView: textView)
80-
let isLightMode = theme.background.brightnessComponent > 0.5
80+
let isLightMode = (theme.background.usingColorSpace(.deviceRGB)?.brightnessComponent ?? 0.0) > 0.5
8181

8282
self.scrollView = ForwardingScrollView()
8383
scrollView.translatesAutoresizingMaskIntoConstraints = false

0 commit comments

Comments
 (0)