MobileScreen.TintColor

From Xojo Documentation

Property (As ColorGroup )
aMobileScreen.TintColor = newColorGroupValue
or
ColorGroupValue = aMobileScreen.TintColor

Supported for all project types and targets.

Overrides the default tint color of controls within this screen, for example Button captions, Progress Bars and Slider tracks.

Notes

The TintColor can be a ColorGroup created in code or one you have created as a project item.

Because this is a ColorGroup, you can create a Dual-color ColorGroup so that the TintColor will automatically be correct in Dark versus Light mode.

Sample Code

In the MobileScreen.Opening event, set the background color to a ColorGroup in the project called MyTheme:

Me.TintColor = MyTheme

See Also

ColorGroup class.