How to get a color scheme in Liferay

Is it possible in Liferay to get a programmed color scheme for a theme?

I have to include different icons depending on the current color scheme. I know that this can be done using css, but in my problem it is better to get the color scheme in java code

+3
source share
1 answer

If you want to get the color scheme of the current page you are in, try the following code

ColorScheme colorScheme = (ColorScheme )request.getAttribute(WebKeys.WebKeys.COLOR_SCHEME);
+3
source

All Articles