github swiftDialog/swiftDialog v1.10.0
swiftDialog v1.10

latest releases: v2.4.2, v2.4.1, v2.4.1.4752...
2 years ago

New Features

Change Icon position and hide the title area

The icon can now be re-positioned to occupy the area centred underneath the dialog title. In addition the title area can be completely hidden if desired.

Use

--centreicon --centericon - will reposition the icon to the centre of the dialog window
--title and --icon can be given the property none (in the case of --icon none this is functionally the same as --hideicon)

image

Window positioning

--position centre will use the screen dead centre and not the slightly higher than centre default.

More detailed textfield properties

swiftDialog text entry fields have been given some new properties:

  • required: When used, the dialog cannot be dismissed without filling in the required field.

  • secure: When used the text field will hide the contents from being displayed on screen. The contents are returned on exit in plaintext.

  • prompt (supported on macOS 12+): Will display the specified prompt text within the field.

Use

Invoke on the command line with --textfield <field_label>,secure,required,prompt="<promt_text>" or in json with :

{
  "textfield" : [
    {"title" : "<field_label>", "secure" : true, "required" : true, "prompt" : "<prompt_text>" }
  ]
}

image

Multiple dropdown support.

swiftDialog now supports multiple dropdowns and updated output format to suit

Use

When used as command line argument add multiple --selecttitle, --selectvalues and --selectdefault. values, titles and defaults are assigned in the order they are presented

as json:

"selectitems" : [
    {"title" : "Select 1", "values" : ["one","two","three"]},
    {"title" : "Select 2", "values" : ["red","green","blue"], "default" : "red"}
  ]

image

updated command file commands

  • icon: centre (or center) and icon: default will let you flip the icon to the centred position or the default
  • icon: none will hide the icon. content will shift to fill the space
  • icon: size: <int> will re-size the icon to the specified number of points.
  • title: none will hide the title and horizontal separator bar
  • passing in an invalid icon or image file will not cause dialog to quit

Don't miss a new swiftDialog release

NewReleases is sending notifications on new releases.