mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix display issue in Account prefs — don’t draw outside of bounds.
This commit is contained in:
@@ -26,9 +26,11 @@ final class PreferencesControlsBackgroundView: NSView {
|
||||
}
|
||||
|
||||
override func draw(_ dirtyRect: NSRect) {
|
||||
|
||||
let fillColor = self.effectiveAppearance.isDarkMode ? darkModeFillColor : lightModeFillColor
|
||||
fillColor.setFill()
|
||||
dirtyRect.fill()
|
||||
let r = NSIntersectionRect(dirtyRect, bounds)
|
||||
r.fill()
|
||||
|
||||
let borderColor = self.effectiveAppearance.isDarkMode ? darkModeBorderColor : lightModeBorderColor
|
||||
borderColor.set()
|
||||
|
||||
@@ -16,6 +16,8 @@ final class PreferencesTableViewBackgroundView: NSView {
|
||||
override func draw(_ dirtyRect: NSRect) {
|
||||
let color = self.effectiveAppearance.isDarkMode ? darkBorderColor : lightBorderColor
|
||||
color.setFill()
|
||||
dirtyRect.fill()
|
||||
|
||||
let r = NSIntersectionRect(dirtyRect, bounds)
|
||||
r.fill()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user