Inquiry on how to change palette (color) of theme

Dear All,

I have an application using Office2019Colorful theme, the default color is blue, however I want to change it to other colors.
As in this page https://help.syncfusion.com/wpf/themes/theme-studio , it stated that Office2019Colorful can support various palette/color, but I couldn't find a way to change the palette color from either the View or ViewModel.
Is using the Theme Studio the only option? Or there are simple way to just change the color?
Please help! Thanks.


Regards

Jack


4 Replies 1 reply marked as answer

SA Sulthan Amanu Syncfusion Team April 28, 2022 02:23 PM UTC

Hi Jack


We suggest you customize the existing theme by using either the built-in color palette available in each theme setting or using its property.


Please find the below guidelines to customize your existing theme:


Customize theme colors and fonts in the application


Please refer to simple demo:


Here we have customized the existing theme by using the property available in the Office2019ColorfulThemeSettings class.


Regards,

Sulthan Amanu


Attachment: ThemeCustomization_2c4bf82d.zip

Marked as answer

JY Jiun Yih Lee May 5, 2022 08:54 AM UTC

Hi, 


the method works, but the downside is it needs about 1 second to load the theme, and before that will just be the default theme, is there a way to prevent the 1 sec default theme issue?


Regards
Jack



JY Jiun Yih Lee May 5, 2022 08:56 AM UTC

Hi,

I managed to find the way to prevent that 1 sec issue, just put the themeSettings code before the InitializeComponent();

Thanks for the help!


Regards
Jack



SP Sangavi Periyannan Syncfusion Team May 6, 2022 06:01 AM UTC

Hi Jack,


We are glad that the provided response meets your requirement. Please let us know if you need further assistance. As always, we are happy to help you out. 


Regards,

Sangavi


Loader.
Up arrow icon