Changing UI preferences in Javascript

A new feature in InDesign CC is the Dark UI. You can now adjust UI brightness and other UI properties using scripting.

  • matchPreviewBackgroundToThemeColor: If set to true the Preview Background color will be set to match the Theme Color
  • pasteboardColorPreference: Lets you set Pasteboard Color preference. Use 0 to set pasteboard color preference to Default White, and 1 to set preference to Match with Theme Color.
  • uiBrightnessPreference: Lets you specify the Application User Interface brightness preference (from 0.0 to 1.0). To use color theme brightness preset values, specify 0.0 for Dark, 0.33 for Medium Dark, 0.67 for Medium Bright, and 1.0 for Bright. Any value between 0.0 and 1.0 can also be used.

Here is an example in JavaScript:

Comments are closed.