Skip to content

Commit 46f4e36

Browse files
committed
Toolbar Opacity
1 parent 79b49b3 commit 46f4e36

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeEdit/Features/Documents/Controllers/CodeEditWindowController+Toolbar.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extension CodeEditWindowController {
1919
self.window?.toolbarStyle = .automatic
2020
toolbar.centeredItemIdentifiers = [.activityViewer, .notificationItem]
2121
toolbar.displayMode = .iconOnly
22+
self.window?.titlebarAppearsTransparent = true
2223
} else {
2324
self.window?.toolbarStyle = .unifiedCompact
2425
toolbar.displayMode = .labelOnly

CodeEdit/Features/Editor/Views/EditorAreaView.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ struct EditorAreaView: View {
129129
}
130130
}
131131
.environment(\.isActiveEditor, editor == editorManager.activeEditor)
132-
.background(EffectView(.headerView))
132+
.if(.tahoe) {
133+
// FB20047271: Glass toolbar effect ignores floating scroll view views.
134+
// https://openradar.appspot.com/radar?id=EhAKBVJhZGFyEICAgKbGmesJ
135+
$0.background(EffectView(.headerView).ignoresSafeArea(.all))
136+
} else: {
137+
$0.background(EffectView(.headerView))
138+
}
133139
}
134140
}
135141
.focused($focus, equals: editor)

0 commit comments

Comments
 (0)