mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Fully working colorpicker
This commit is contained in:
parent
cc5667d355
commit
6a8477758b
16 changed files with 1668 additions and 1 deletions
|
|
@ -92,6 +92,24 @@ struct DynamicIslandHeader: View {
|
|||
}
|
||||
}
|
||||
|
||||
// ColorPicker button
|
||||
if Defaults[.enableColorPickerFeature] {
|
||||
Button(action: {
|
||||
ColorPickerPanelManager.shared.toggleColorPickerPanel()
|
||||
}) {
|
||||
Capsule()
|
||||
.fill(.black)
|
||||
.frame(width: 30, height: 30)
|
||||
.overlay {
|
||||
Image(systemName: "eyedropper")
|
||||
.foregroundColor(.white)
|
||||
.padding()
|
||||
.imageScale(.medium)
|
||||
}
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
}
|
||||
|
||||
if Defaults[.settingsIconInNotch] {
|
||||
Button(action: {
|
||||
SettingsWindowController.shared.showWindow()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue