Do you have any ideas on how to make the background color of a NSTextView the same as the background of a NSComboBox when both are on a sidebar?
The closest I could get is using a NSVisualEffectView, but it's still not optimal (the text view is slightly darker)
override init(frame: NSRect) {
self.scrollView = NSTextView.scrollableTextView()
if #available(macOS 26.0, *) {
scrollView.borderType = .lineBorder
let backgroundView = NSVisualEffectView()
backgroundView.material = .contentBackground
backgroundView.blendingMode = .withinWindow
backgroundView.state = .followsWindowActiveState
backgroundView.translatesAutoresizingMaskIntoConstraints = false
self.materialBackgroundView = backgroundView
} else {
self.materialBackgroundView = nil
}
...