cancel
Showing results for 
Search instead for 
Did you mean: 

Doesn't get library-parameters.json file in custom theme creation when using SAP UI Theme Designer.

former_member615576
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member259572
Participant

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.