mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-04 21:07:40 +01:00
24 lines
597 B
Swift
24 lines
597 B
Swift
//
|
|
// PreferencesTableViewBackgroundView.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Brent Simmons on 3/19/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import AppKit
|
|
|
|
final class PreferencesTableViewBackgroundView: NSView {
|
|
|
|
let lightBorderColor = NSColor(white: 0.71, alpha: 1.0)
|
|
let darkBorderColor = NSColor(red: 0.41, green: 0.43, blue: 0.44, alpha: 1.0)
|
|
|
|
override func draw(_ dirtyRect: NSRect) {
|
|
let color = self.effectiveAppearance.isDarkMode ? darkBorderColor : lightBorderColor
|
|
color.setFill()
|
|
|
|
let r = NSIntersectionRect(dirtyRect, bounds)
|
|
r.fill()
|
|
}
|
|
}
|