Files
NetNewsWire/Mac/MainWindow/MainWindowSplitView.swift
T
2026-11-07 16:47:52 -08:00

23 lines
620 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// MainWindowSplitView.swift
// NetNewsWire
//
// Created by Brent Simmons on 11/7/26.
// Copyright © 2026 Ranchero Software. All rights reserved.
//
import AppKit
/// The main window’s split views. In light mode, the dividers are a little darker than the system’s.
class MainWindowSplitView: NSSplitView {
private static let lightDividerColor = NSColor(srgbRed: 200 / 255, green: 200 / 255, blue: 200 / 255, alpha: 1)
override var dividerColor: NSColor {
if effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua {
return super.dividerColor
}
return Self.lightDividerColor
}
}