How to add color to Design System Icons ?

venkat101
Tera Guru

Hi I am trying to add color to field decorator on agent workspace form. I was able to add icon based on condition but i cant change color of it using decorator class. Need help on how to do it.

 

g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-green'); This is what is used from documentation but did not work.

4 REPLIES 4

Samaksh Wani
Giga Sage
Giga Sage

Hello @venkat101 

 

- Change the application scope to the custom application scope in which the custom Workspace experience is created.

- Open the "UX Theme" record (Table: sys_ux_theme) which is applied to the custom workspace.

- Open the "UX Theme Assets" related list.

- Click on New 

-In the 'Asset' field click on search icon "UX Theme Assets"  list will be displayed.

- Click on New button to create a new asset (Table : sys_ux_theme_asset)

- Fill the mandatory fields and attach the logo image file which needs to be shown on workspace banner.

- Click on Submit button.

- Now the 'UX  Theme Asset' will be created in the custom application scope. 

- In the 'Asset Properties' field, enter the below code .

{"position": "header_logo"}

-Click on Submit button and update the theme record.

- Now the logo on the banner will be changed to the attached asset file.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

venkat101
Tera Guru

Hi, Thank you for responding. I am looking for system icons modification. I figured out an alternative way to finish my requirement.

Ram68
Tera Contributor

@venkat101  Could you please let me know how it was able to do this. I'm have similar issue. 

Ram68
Tera Contributor

Could you Please let me know how it was fixed, I'm also facing similar issue.