Back

Dynamic Theme Images


Images added to a Theme can only be added to Web Pages if their Form is configured to use that Theme. See Developing with Themes for more information about this configuration.

When adding an Image Control to a Web Page, its image can be selected from the currently configured Theme. Images configured in this way have URLs that start with $theme.

Now when the Web Page is rendered to an end-user, the it uses the image from its Form’s current Theme. If the end-user switches to a different Theme, the image is automatically served from the new Theme. This allows images with more appropriate colours to be used in different Themes, maintaining the consistency of the application’s styling.

Theme images must have the same path and filename in both the current Theme and the new Theme for this feature to work.