Fully working colorpicker

This commit is contained in:
Hariharan Mudaliar 2025-08-23 23:50:04 +05:30
commit 6a8477758b
16 changed files with 1668 additions and 1 deletions

View file

@ -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()