feat: update tool bar background color

This commit is contained in:
dscyrescotti
2024-07-17 20:06:46 +07:00
parent 9322a3ee2e
commit ae91b69f88

View File

@@ -52,7 +52,7 @@ struct DashboardView: View {
}
.animation(.easeIn, value: application.memoObject)
.toolbar(application.memoObject == nil ? .visible : .hidden, for: .windowToolbar)
.toolbarBackground(application.memoObject == nil ? .clear : Color(nsColor: .windowBackgroundColor), for: .windowToolbar)
.toolbarBackground(Color(nsColor: .windowBackgroundColor), for: .windowToolbar)
.onChange(of: columnVisibility) { oldValue, newValue in
application.changeSidebarVisibility(newValue == .all ? .shown : .hidden)
}