Skip to content

swiftDialog v2.4.0 Beta 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@bartreardon bartreardon released this 02 Jan 05:38
· 13 commits to dev_2.4.0 since this release

New things

  • --windowbuttons argument - shows the close, minimize and maximise/fullscreen buttons on the window
    image

  • computer is a valid option wherever icon can be used (e.g. --icon computer). shows the visual representation of the device

  • New text= for image sources. useful for using emoji as icons for example --icon text=🙂

  • New color= for --background and --bannerimage so you can use solid colours instead of images for those commands --background color=red --bannerimage colour=#12a4b1

  • Added --bannerheight so you can specify an exact height for the banner

  • json processing properly accepts numbers now so {"width" : 450} is acceptable (as is the current method where everything needs to be treated as a string)

  • Icons used in listitems are now width limited in addition to height - this is important for sf symbol rendering so they are all the same size

  • Add Missing System Font Weights and Colors - pr #321

  • --notification can now accept --button1action to set a default action to take when a user clicks a notification. can be a URL or command:
    image

    • e.g. --notification --title "<text>" --message "<text>" --button1action "open -a Safari.app"
    • --notification --title "<text>" --message "<text>" --button1action "https://swiftdialog.app/"
    • You can specify an additional action and define the button labels : --notification --title "<text>" --message "<text>" --button1text "Do Something" --button1action "/do/something" --button2text "Do Something Else" --button2action "/do/something/else/"
    • --button1action will remain the default action if either the notification or button1 is actioned. button2action will only trigger if button2 is actioned.
  • Added --hidedefaultkeyboardaction argument. Changes the default "Return" or "Escape" keys to require cmd+shift. This helps mitigate against non-intentional dismissal of dialogs. #125

  • Added a property to non switch style checkboxes that allows them to affect button1. This is useful for terms and conditions style checkboxes where you want to disable the button until the user has agreed to the terms.

    • Example: dialog --checkbox "I Agree",enableButton1 --button1disabled
      image image
  • Initial work on a date picker #224

    • Example: --textfield "Choose a date",isdate=true
    image
    • No validation at this point in time. Just puts the selected date into the textfield.
  • A bunch of code stuff under the hood that won't be noticed but makes my life a little easier 😉