mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
added a separate tab view for clipboard and added the possibility to write notes
This commit is contained in:
parent
44c053a761
commit
4106e845ee
10 changed files with 688 additions and 6 deletions
|
|
@ -76,6 +76,8 @@ struct DynamicIslandHeader: View {
|
|||
ClipboardPanelManager.shared.toggleClipboardPanel()
|
||||
case .popover:
|
||||
showClipboardPopover.toggle()
|
||||
case .separateTab:
|
||||
coordinator.currentView = .notes
|
||||
}
|
||||
}) {
|
||||
Capsule()
|
||||
|
|
@ -207,6 +209,8 @@ struct DynamicIslandHeader: View {
|
|||
.transition(.opacity)
|
||||
}
|
||||
|
||||
|
||||
|
||||
if Defaults[.showBatteryIndicator] {
|
||||
DynamicIslandBatteryView(
|
||||
batteryWidth: 30,
|
||||
|
|
@ -238,6 +242,12 @@ struct DynamicIslandHeader: View {
|
|||
ClipboardPanelManager.shared.toggleClipboardPanel()
|
||||
case .popover:
|
||||
showClipboardPopover.toggle()
|
||||
case .separateTab:
|
||||
if coordinator.currentView == .notes {
|
||||
coordinator.currentView = .home
|
||||
} else {
|
||||
coordinator.currentView = .notes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue