File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ private struct IceBarContentView: View {
260
260
screen. hasNotch ? 0 : 2
261
261
}
262
262
263
- var contentHeight : CGFloat ? {
263
+ private var contentHeight : CGFloat ? {
264
264
guard let menuBarHeight = imageCache. menuBarHeight ?? screen. getMenuBarHeight ( ) else {
265
265
return nil
266
266
}
@@ -278,6 +278,10 @@ private struct IceBarContentView: View {
278
278
}
279
279
}
280
280
281
+ private var shadowOpacity : CGFloat {
282
+ configuration. current. hasShadow ? 0.5 : 0.33
283
+ }
284
+
281
285
var body : some View {
282
286
ZStack {
283
287
content
@@ -287,7 +291,7 @@ private struct IceBarContentView: View {
287
291
. layoutBarStyle ( appState: appState, averageColorInfo: colorManager. colorInfo)
288
292
. foregroundStyle ( colorManager. colorInfo? . color. brightness ?? 0 > 0.67 ? . black : . white)
289
293
. clipShape ( clipShape)
290
- . shadow ( color: . black. opacity ( configuration . current . hasShadow ? 0.5 : 0 ) , radius: 2.5 )
294
+ . shadow ( color: . black. opacity ( shadowOpacity ) , radius: 2.5 )
291
295
292
296
if configuration. current. hasBorder {
293
297
clipShape
You can’t perform that action at this time.
0 commit comments