mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-05-17 13:17:03 +02:00
feat: update tool bar background color
This commit is contained in:
@@ -52,7 +52,7 @@ struct DashboardView: View {
|
|||||||
}
|
}
|
||||||
.animation(.easeIn, value: application.memoObject)
|
.animation(.easeIn, value: application.memoObject)
|
||||||
.toolbar(application.memoObject == nil ? .visible : .hidden, for: .windowToolbar)
|
.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
|
.onChange(of: columnVisibility) { oldValue, newValue in
|
||||||
application.changeSidebarVisibility(newValue == .all ? .shown : .hidden)
|
application.changeSidebarVisibility(newValue == .all ? .shown : .hidden)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user