on 10-09-2019 12:51 PM
I deployed a custom SAPUI5 Application to SAP cloud platform and now I want to apply custom theme for that application. So for that I created new theme using SAP UI theme Designer and I'm not getting the library-parameters.json file when importing to WebIDE. For Instance I've created new theme called Theme1 and the path to the library-parameters.json file is like this:
Theme1->UI5->UI->layout->themes->Theme1->library-parameters.json.
Please sort out.
Hi Sudhakar,
Hope you are doing well,
As per my understanding, you followed the blog Step by step styling using theme designer on the cloud platform which is perfect.
But if you try importing directly from the cloud platform, you might not get the required files, try exporting your theme.
While exporting, please select below options as per your requirement.
-> "Source Files + CSS Resources" or
-> "Source Files + CSS Resources + Base Theme Resources" radio buttons
-> under "Optional settings (for Experts)" which will generate required files for your themes.
Additional Information :
You can set the theme on the fly by adding set of code.
"farooq2" is a theme ID in this example.
sap.ui.getCore().setThemeRoot("farooq2" , "./<folder_path>/UI5/");
sap.ui.getCore().applyTheme("farooq2");
FYR.
I hope this would help.
Best Regards,
Farooq.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.