Theme for individual widgets.

Write your functional requirement here, be Specific please!
Post Reply
algocrunch
Posts: 40
Joined: Thu Oct 31, 2013 12:50 pm

Theme for individual widgets.

Post by algocrunch »

Is it possible to set it so a single widget will pull from a different root theme folder, or one that we can specify. For instance if I create a theme with multiple color options, and separate them into different sub folders can i have a widget call up a "theme/color" location to now load images specific to that color? We have tried the ways specified in the documentation & it tells how to set it up for the over all application but not on a single widget basis.

support
Posts: 356
Joined: Sat Apr 27, 2013 9:22 am

Re: Theme for individual widgets.

Post by support »

We do have an demo on that.

Find "Use setTheme for individual" in http://crossui.com/xui/Examples/ .

algocrunch
Posts: 40
Joined: Thu Oct 31, 2013 12:50 pm

Re: Theme for individual widgets.

Post by algocrunch »

While I understand this works for creating a custom CSS based theme, is there a way to use the .setTheme('MYTHEME') which will then set all images for that widget to images that have been created for a custom theme.

Just like where on an application wide basis we use the xui.setTheme('MYTHEME').

Is this possible without having to call all the individual image css classes like below, or without having to make a "custom" class for each widget?

Code: Select all

.xui-uibar-top td, .xui-uibar-top-s td, .xui-uibar-bottom td, .xui-uibar-bottom-s td{
    background-image: url(Public/bar_vertical.gif);

.xui-uibar-custom-top td, .xui-uibar-custom-top-s td, .xui-uibar-custom-bottom td, .xui-uibar-custom-bottom-s td{
    background-image: url(Custom/Window/bar_vertical.gif);

Post Reply