Change accent color stopped working

2 Answers 26 Views
TabControl
Diego Modolo
Top achievements
Rank 1
Iron
Diego Modolo asked on 14 Oct 2021, 09:00 PM

After upgrading to 2021.3, I could not change the accent color from Fluent Theme anymore.

I've checked and noticed that the problem is with the MaterialAssist, that is not using the color set in the AccentColor of the FluentPalette.

My code has always been like this:

FluentPalette.Palette.AccentColor = (Color)dicEntry.Value;

And it has always worked (I have an old version with the older components and it still works), but now I don't know what to do to fix it.

2 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 18 Oct 2021, 09:56 AM

Hi Diego,

Thank you very much for the provided images.

I tried to replicate the issue you described, however, the accent color is correctly reflected in the RadTabControl's tabs at my end with the 2021.3.914 version of the suite:

I've attached the sample project I used for the purpose to my reply for your reference.

Can you please have a look and let me know if I'm missing something of importance? Are there any custom styles in your original application which may affect this?

If possible, please modify the sample project to demonstrate the issue you observe and I will gladly assist you further.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Diego Modolo
Top achievements
Rank 1
Iron
answered on 18 Oct 2021, 01:33 PM

Hi Dilyan, thanks for the answer.

I've found out what is the problem: I was loading the light/dark preset after setting the accent color, so it was being replaced.

After changing the LoadPreset to before setting the color it worked.

Thanks a lot for you help.

 

Tags
TabControl
Asked by
Diego Modolo
Top achievements
Rank 1
Iron
Answers by
Dilyan Traykov
Telerik team
Diego Modolo
Top achievements
Rank 1
Iron
Share this question
or