cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

Theme - enum + custom json file

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.

Status: New