Search code examples
javacssliferayvelocityliferay-theme

how to write plugin that change the color scheme for control panel theme?


after setting a theme as main theme for Control Panel (control panel->configuration->portal settings->display settings->look and feel), there is no option to select any of my color schemes that come with the theme,

how can i write plugin to make it possible to choose a color scheme?


Solution

  • Thanks guys i was able to solve this by adding JavaScript Code (JQuery), in the main.js file of the theme that execute on page load and detect the Control panel and change the class of <body> to the Color defined in the main.js.