swiftDialog 2.5.6 Beta 1
Pre-releaseFixes:
- Fixed an issue where specifying an icon from json required the icon to be in an array even if there was a single icon. fixes #493
Contributions:
@chrisgrande #488 Additional options for working with notifications
Ability to set an identifier for a notification, allowing you to easily replace a notification with an updated one. Also the ability to remove a specific notification by identifier or all notifications.
Example:
dialog --notification --identifier "update.message" --title "Updates" --message "Please update by tonight."
dialog --notification --identifier "update.message" --title "Updates" --message "Please update within the next hour."
dialog --notification --identifier "update.message" --remove
@k2graham #492 Added buttonsize as a command line and control file variable
Added support for mini, small and large button button sizes, using the built in macOS sizes. The button size will default to the current value of regular if not specified or not valid.
Added support for button size to the builder mode for testing and JSON generation.
Tested with control files, json input and command line, and with incorrect values.
Button style is applied to button1, button2 and the info button. It is also applied in the normal and stacked button layout.
It does not scale the help button, which is a fixed size.
Examples:
dialog --buttonsize large --commandfile /var/tmp/dialog.txt
echo "buttonsize: mini" >> /var/tmp/dialog.txt
@fabienconus #497 Added options to hide and show the dialog window from the command file
Adds hide:
and show:
commands to the list of command file commands to hide and show windows. This does not prevent window updates from occurring while a window is hidden.