Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep the blur under the sidebar's head on macOS 27

Țugui Dragoș38cb05276985
diff --git a/Peel/Navigation/TitleBarBackground.swift b/Peel/Navigation/TitleBarBackground.swift
index 5737e6e6..7a57db61 100644
--- a/Peel/Navigation/TitleBarBackground.swift
+++ b/Peel/Navigation/TitleBarBackground.swift
@@ -1,8 +1,8 @@
import SwiftUI
extension View {
- /// Keeps the title bar clear on macOS 27: no background behind each column's section of it, and nothing drawn
- /// over what scrolls beneath it.
+ /// Keeps the title bar clear on macOS 27: no background behind each column's section of it, and, outside the
+ /// sidebar's head, nothing drawn over what scrolls beneath it.
@ViewBuilder
func clearTitleBar() -> some View {
if #available(macOS 27, *) {
diff --git a/Peel/Navigation/ToolSidebar.swift b/Peel/Navigation/ToolSidebar.swift
index f33bfdd7..b3be232a 100644
--- a/Peel/Navigation/ToolSidebar.swift
+++ b/Peel/Navigation/ToolSidebar.swift
@@ -75,7 +75,9 @@ struct ToolSidebar: View {
group(.storage, isExpanded: $isStorageExpanded)
group(.system, isExpanded: $isSystemExpanded)
}
- .edgeBar(.top, spacing: 0) { mascot }
+ // A bar on every macOS, unlike a page's (`edgeBar`): the face is glass on the sidebar's glass, and glass
+ // cannot sample other glass, so the bar's own edge effect is what blurs the rows passing under it.
+ .safeAreaBar(edge: .top, spacing: 0) { mascot }
.takesFocusWhenNothingHasIt()
.onReceive(
NotificationCenter.default.publisher(for: NSScroller.preferredScrollerStyleDidChangeNotification)