@@ -49,6 +49,8 @@ struct WorkspaceView: View {
4949 @State
5050 private var leaveFullscreenObserver : Any ?
5151
52+ @Environment ( \. colorScheme) var colorScheme
53+
5254 var noEditor : some View {
5355 Text ( " No Editor " )
5456 . font ( . system( size: 17 ) )
@@ -80,27 +82,21 @@ struct WorkspaceView: View {
8082 ZStack {
8183 tabContent
8284 }
83- . frame ( maxWidth: . infinity, maxHeight: . infinity)
84- . background {
85- if prefs. preferences. general. tabBarStyle == . xcode {
86- // Use the same background material as xcode tab bar style.
87- // Only when the tab bar style is set to `xcode`.
88- TabBarXcodeBackground ( )
89- }
90- }
91- . safeAreaInset ( edge: . top, spacing: 0 ) {
92- VStack ( spacing: 0 ) {
93- TabBarView ( windowController: windowController, workspace: workspace)
94- TabBarBottomDivider ( )
95- }
96- }
97- . safeAreaInset ( edge: . bottom) {
98- StatusBarView ( model: model)
85+ . frame ( maxWidth: . infinity, maxHeight: . infinity)
86+ . safeAreaInset ( edge: . top, spacing: 0 ) {
87+ VStack ( spacing: 0 ) {
88+ TabBarView ( windowController: windowController, workspace: workspace)
89+ TabBarBottomDivider ( )
9990 }
91+ }
92+ . safeAreaInset ( edge: . bottom) {
93+ StatusBarView ( model: model)
94+ }
10095 } else {
10196 EmptyView ( )
10297 }
10398 }
99+ . background ( colorScheme == . dark ? Color ( . black) . opacity ( 0.25 ) : Color ( . white) )
104100 . alert ( alertTitle, isPresented: $showingAlert, actions: {
105101 Button (
106102 action: { showingAlert = false } ,
0 commit comments