1) It would be great if the Theme would have enum like properties and PowerApps would then use those as default options on the controls.
2) With this it would even better to also be able to apply an (additional) custom JSON file to the central Theme. Of course with the option to reference the Theme Enums.
Usecase
1) This would result in the option to reference the Theme in your formulas like:
Theme.Font
Theme.Color
Theme.HoverColor
Theme.DisableColor
Theme.PressedColor
Theme.Fill
etc.
2) We would use this option like:
Add addition JSON to Theme:
{
Table:{
Font: Theme.Font
,S:{
Color: Theme.Color
,Fill: Theme.Fill
,Size: Theme.Size + 2
}
,H:{
Color: Theme.Color
,Fill: DarkBlue
,Size: Theme.Size + 4
}
,C:{
Color: Theme.Color
,Fill: Theme.Fill
,Size: Theme.Size
}
}
}
Then on the controls, we could use this like:
Theme.Table.H.Size
The best would be that you can apply multiple custom json files and are able to apply an order to those files. So you can first creat some global settings and use those settings in lower json formatting.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.