How to update the background header color in the Next UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2022 05:58 AM
Before the Next UI, we always had a different background color on all of our lower environment instances to quickly tell them apart. After switching to Next UI we lost that capability and I did a lot of searching on how to regain this functionality. I could not find the answer in one spot. After much searching I was able to cobble together the solution and I am passing those results on here. We have tested this and have not had any issues.
- Go to sys_ux_style.list
- Open Colors
- Copy All of JSON in the style box
- Return to the UX Styles List and Click New
- Enter a name
- Paste in the JSON you previously copied
- Search for “now-unified-nav_header--background-color”
- In the Red text change the default color to the RGB color you want (hint: if you scroll to the top of the style you will see many examples of RGB colors you can copy)
- Click Submit
- Open Colors
- Go to sys_ux_theme.list and click new
- Give it a name
- On the Compositional App Theme Click on the style column and choose the style you created in the previous step
- Then use the insert a new row functionality and add three more styles
- UI16 Dashboard Visualization Compatibility
- Shape and Form
- Typography
- Save the Theme
- Ensure all the styles have an order of 0 and a type of Core
- Copy the sys id
- Got to sys_properties.list and click NEW
- Name - glide.ui.polaris.theme.custom
- Type – string (should be default)
- Value – the sys id from previous step
- SAVE
- Log out and log back in again and the new banner should be available
- Ensure tables sys_ux_style and sys_ux_theme are excluded from a clone back
I hope this helps all others that have struggled with this
- 12,385 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 05:07 AM
I assume that this is for all users.
It would be kind a great to have one for individual persons - still useful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 07:26 PM - edited 12-13-2023 07:32 PM
Hi @Jugmaz,
I was able to make it individual after following @Vincent Daniele steps but setting the UX Style type to Variant instead of Core.
And instead of creating/adding new theme style and putting it on the system property, I add it on the Polaris Theme.
1. On the UX Theme Styles related list of your UX Style, create new record
- Style - Select newly created style
- Theme - Select Polaris
- Applicability - Select which role users should see this style. For ex. Only all Admin should have this new style as option.
2. Click Submit.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 01:31 PM
THANK YOU! I was missing the part to add the 3 additional styles under Compositional App Theme.
Susan Williams, Lexmark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 09:30 AM
Thanks Vincent! These were great instructions. I created a new theme for a 'green' banner color and it works (I see it in the user preferences menu). However, two things on which I have a question:
1. The dark theme was removed - so I just have the default theme and my new 'green banner' theme. Any thoughts on how I can bring the 'dark' theme back as a selectable option?
2. Any thoughts on how I can make the customized themes available only to individual users?
Pic attached for reference - thanks!