swiftDialog v2.4.0 Beta 1
Pre-releaseNew things
-
--windowbuttons
argument - shows the close, minimize and maximise/fullscreen buttons on the window
-
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:
- 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.
- e.g.
-
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.
-
Initial work on a date picker #224
- Example:
--textfield "Choose a date",isdate=true
- No validation at this point in time. Just puts the selected date into the textfield.
- Example:
-
A bunch of code stuff under the hood that won't be noticed but makes my life a little easier 😉