Theme class
A Theme defines the styling for the user interface.
Creating custom themes and modifying exsiting themes for Android requires
to create the corresponding styles within XML files in the
android/app/src/main/res/values
folder first. For instructions, please
refer to our documentation:
https://img.ly/docs/pesdk/android/customization/themes/
Constructors
- Theme(String identifier, {Color? tintColor, Color? primaryColor, Color? backgroundColor, Color? toolbarBackgroundColor})
- Creates a custom Theme.
- Theme.existing(ExistingTheme existingTheme, {Color? tintColor, Color? primaryColor, Color? backgroundColor, Color? toolbarBackgroundColor})
-
Creates a custom Theme from a given
existingTheme
.
Properties
- backgroundColor → Color?
-
The background color used for the background of the canvas in the editor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The identifier of the theme.
final
-
The background color of the menu and accesory controls above the menu
in the editor.
final
- primaryColor → Color?
-
The primary tint color used for texts, buttons, icons, and control
elements with static background colors in the editor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tintColor → Color?
-
The highlight tint color, e.g., used for the outline of selected menu
items, the sliders' thumb outline and filled track, and selected fonts
in the editor.
If
null
the default system'stintColor
is used.final - toolbarBackgroundColor → Color?
-
The background color of the toolbar that hosts the title of the active
tool, the discard, and the apply button in the editor.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited