diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-02-11 13:37:20 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-02-11 13:37:20 +0100 |
| commit | 768e492ea13d8c0f62e0334c4c626db4596a66d8 (patch) | |
| tree | a6027ff28e371f90bfb1d22c576dbd36dd0a632d /Flat Bezel/BackgroundView.swift | |
| parent | 285ac7c2364f90a6bfc7853e25ec7f592d2009bc (diff) | |
Port more files to swift
Diffstat (limited to 'Flat Bezel/BackgroundView.swift')
| -rw-r--r-- | Flat Bezel/BackgroundView.swift | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Flat Bezel/BackgroundView.swift b/Flat Bezel/BackgroundView.swift index 041874a..7890798 100644 --- a/Flat Bezel/BackgroundView.swift +++ b/Flat Bezel/BackgroundView.swift @@ -1,24 +1,16 @@ -// -// BBBackgroundView.swift -// Flat Bezel -// -// Created by Ruben Beltran del Rio on 2/8/23. -// Copyright © 2023 BRNBW. All rights reserved. -// - import Foundation import Cocoa class BackgroundView: QSBezelBackgroundView { override func draw(_ rect: NSRect) { - let boundsRect = self.bounds + let boundsRect = bounds let roundRect = NSBezierPath() roundRect.appendRoundedRect(boundsRect, xRadius: 8.0, yRadius: 8.0) roundRect.addClip() - let darkMode = self.effectiveAppearance.name == .darkAqua + let darkMode = effectiveAppearance.name == .darkAqua if (darkMode) { NSColor(red: 0.1, green: 0.1, blue: 0.1, alpha: 0.99).setFill() } else { |