forked from IvanMathy/Boop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IvanMathy#286 from IvanMathy/feat/bigsur
Feat/bigsur
- Loading branch information
Showing
18 changed files
with
246 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+439 Bytes
(100%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/icon_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+112 Bytes
(100%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+712 Bytes
(320%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+468 Bytes
(130%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+499 Bytes
(100%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/icon_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.83 KB
(110%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+468 Bytes
(130%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/icon_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+423 Bytes
(110%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.83 KB
(110%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/icon_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+53.6 KB
(120%)
Boop/Boop/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// PopoverContainerView.swift | ||
// Boop | ||
// | ||
// Created by Ivan on 7/8/21. | ||
// Copyright © 2021 OKatBest. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import AppKit | ||
|
||
|
||
class PopoverContainerView: NSView { | ||
|
||
// This is a wrapper view so that the child popver actually clips | ||
// the contained table. The issue was the shadow is technically | ||
// part of the mask so rounded corners would get ignored. | ||
|
||
required init?(coder decoder: NSCoder) { | ||
super.init(coder: decoder) | ||
|
||
self.wantsLayer = true | ||
self.layer?.cornerRadius = 12.0 | ||
|
||
let dropShadow = NSShadow() | ||
dropShadow.shadowColor = NSColor(calibratedWhite: 0, alpha: 0.45) | ||
dropShadow.shadowOffset = NSMakeSize(0, -20.0) | ||
dropShadow.shadowBlurRadius = 10.0 | ||
|
||
|
||
self.layer?.borderWidth = 0.5 | ||
|
||
self.shadow = dropShadow | ||
|
||
self.isHidden = true | ||
|
||
self.setOutline() | ||
|
||
} | ||
|
||
func setOutline() { | ||
self.layer?.borderColor = ColorPair.popoverOutline.value(for: self.effectiveAppearance).cgColor | ||
} | ||
|
||
override func viewDidChangeEffectiveAppearance() { | ||
super.viewDidChangeEffectiveAppearance() | ||
self.setOutline() | ||
} | ||
|
||
func show() { | ||
self.animator().alphaValue = 1 | ||
self.animator().isHidden = false | ||
} | ||
|
||
func hide() { | ||
self.animator().alphaValue = 0 | ||
self.animator().isHidden = true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.