@@ -351,7 +351,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
351351 }
352352 preferencesWindow. makeKeyAndOrderFront ( nil )
353353 preferencesWindow. makeFirstResponder ( nil )
354- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerPreferences ) , object: self )
354+ notificationCenter. post ( name: . triggerPreferences , object: self )
355355 }
356356
357357 @IBAction func openSplashWindow( _: Any ? ) {
@@ -369,77 +369,77 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
369369 }
370370
371371 @IBAction func triggerPickForeground( _: Any ) {
372- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerPickForeground ) , object: self )
372+ notificationCenter. post ( name: . triggerPickForeground , object: self )
373373 }
374374
375375 @IBAction func triggerPickBackground( _: Any ) {
376- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerPickBackground ) , object: self )
376+ notificationCenter. post ( name: . triggerPickBackground , object: self )
377377 }
378378
379379 @IBAction func triggerCopyForeground( _: Any ) {
380- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerCopyForeground ) , object: self )
380+ notificationCenter. post ( name: . triggerCopyForeground , object: self )
381381 }
382382
383383 @IBAction func triggerCopyBackground( _: Any ) {
384- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerCopyBackground ) , object: self )
384+ notificationCenter. post ( name: . triggerCopyBackground , object: self )
385385 }
386386
387387 @IBAction func triggerSystemPickerForeground( _: Any ) {
388- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerSystemPickerForeground ) , object: self )
388+ notificationCenter. post ( name: . triggerSystemPickerForeground , object: self )
389389 }
390390
391391 @IBAction func triggerSystemPickerBackground( _: Any ) {
392- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerSystemPickerBackground ) , object: self )
392+ notificationCenter. post ( name: . triggerSystemPickerBackground , object: self )
393393 }
394394
395395 @IBAction func triggerSwap( _: Any ) {
396- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerSwap ) , object: self )
396+ notificationCenter. post ( name: . triggerSwap , object: self )
397397 }
398398
399399 @IBAction func triggerUndo( _: Any ) {
400- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerUndo ) , object: self )
400+ notificationCenter. post ( name: . triggerUndo , object: self )
401401 undoManager. undo ( )
402402 }
403403
404404 @IBAction func triggerRedo( _: Any ) {
405- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerRedo ) , object: self )
405+ notificationCenter. post ( name: . triggerRedo , object: self )
406406 undoManager. redo ( )
407407 }
408408
409409 @IBAction func triggerCopyText( _: Any ) {
410- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerCopyText ) , object: self )
410+ notificationCenter. post ( name: . triggerCopyText , object: self )
411411 }
412412
413413 @IBAction func triggerCopyData( _: Any ) {
414- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerCopyData ) , object: self )
414+ notificationCenter. post ( name: . triggerCopyData , object: self )
415415 }
416416
417417 @IBAction func triggerFormatHex( _: Any ) {
418- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatHex ) , object: self )
418+ notificationCenter. post ( name: . triggerFormatHex , object: self )
419419 }
420420
421421 @IBAction func triggerFormatRGB( _: Any ) {
422- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatRGB ) , object: self )
422+ notificationCenter. post ( name: . triggerFormatRGB , object: self )
423423 }
424424
425425 @IBAction func triggerFormatHSB( _: Any ) {
426- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatHSB ) , object: self )
426+ notificationCenter. post ( name: . triggerFormatHSB , object: self )
427427 }
428428
429429 @IBAction func triggerFormatHSL( _: Any ) {
430- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatHSL ) , object: self )
430+ notificationCenter. post ( name: . triggerFormatHSL , object: self )
431431 }
432432
433433 @IBAction func triggerFormatOpenGL( _: Any ) {
434- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatOpenGL ) , object: self )
434+ notificationCenter. post ( name: . triggerFormatOpenGL , object: self )
435435 }
436436
437437 @IBAction func triggerFormatLAB( _: Any ) {
438- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatLAB ) , object: self )
438+ notificationCenter. post ( name: . triggerFormatLAB , object: self )
439439 }
440440
441441 @IBAction func triggerFormatOKLCH( _: Any ) {
442- notificationCenter. post ( name: Notification . Name ( PikaConstants . ncTriggerFormatOKLCH ) , object: self )
442+ notificationCenter. post ( name: . triggerFormatOKLCH , object: self )
443443 }
444444
445445 @IBAction func hidePika( _: Any ) {
0 commit comments