NotifierUI // Tweak how out-of-date notifications look like.

This commit is contained in:
ShikiSuen 2022-09-27 07:53:24 +08:00
parent 88d4e56f2f
commit 082e4ba455
1 changed files with 4 additions and 1 deletions

View File

@ -142,7 +142,10 @@ extension Notifier {
private func display() {
let existingInstanceArray = Self.instanceStack.compactMap(\.window)
if !existingInstanceArray.isEmpty {
existingInstanceArray.forEach { $0.alphaValue *= 0.5 }
existingInstanceArray.forEach {
$0.alphaValue -= 0.1
$0.contentView?.subviews.forEach { $0.alphaValue *= 0.5 }
}
}
shiftExistingWindowPositions()
fadeIn()