Scripting User Interface Access

Prerequisites

  • The following method is exposed by the UserInterfaceUtils object implemented by the module Thinkbox.Sequoia.Tools.
  • Before calling this method, you must ensure the module is imported.
import Thinkbox.Sequoia.Tools 1.0

UserInterfaceUtils Methods

<QColor> UserInterfaceUtils.getDefinedColor ( <QString>colorName )

  • Returns the QColor of a UI color entry defined in (SequoiaInstallationDirectory)/sequoia_colors.json

Example:

console.log(UserInterfaceUtils.getDefinedColor ("ProgressBarHighlight"))

Output:

STS: QML: #4e88d3