This is a migrated thread and some comments may be shown as answers.

to change some controls to fluent.light style in the default fluent.dark style

6 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
minseok
Top achievements
Rank 1
minseok asked on 06 Dec 2018, 01:28 AM

I want to change some controls to fluent.light style in the default fluent.dark style.

Load the Fluent.Dark when the program start.

 

MainWindow.xaml.cs

public MainWindow()
{
    FluentPalette.LoadPreset(FluentPalette.ColorVariation.Dark);
    InitializeComponent();
}

 

However, some of the screens are bright, I would like to apply the Fluent.Light style to specific control.
(ex, Telerik controls and default controls(buttons etc))

Different styles have theme xaml. so I can overwrite them, but Fluent seems different.

When the entire style is defined, is there a way to change the control from Fluent.Dark to Fluent.Light in some UI groups (such as Grid)?

 

 

 

 

6 Answers, 1 is accepted

Sort by
0
Dyra
Top achievements
Rank 1
answered on 10 Dec 2018, 11:49 AM

I also want to change some controls which is helpful to me. Do you find any solution? Please help me.

Thanks.

0
Martin Ivanov
Telerik team
answered on 10 Dec 2018, 01:20 PM
Hello Dyra,

Currently, this is not supported. A palette can be set only globally. To achieve your requirement you will need to extract the style of the control that you want to use the light colors, and manually set its colors to whatever value you want. 

There is also a feature request for allowing palette setting per control. You can find it in our feedback portal where you can track its status.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dyra
Top achievements
Rank 1
answered on 12 Dec 2018, 05:33 AM

Thanks martin,

thnx but where do I find color palette? or Can I add my own color palette?\

 

thanks, san

https://www.kissanime.vip/

0
Martin Ivanov
Telerik team
answered on 14 Dec 2018, 09:24 AM
Hello Dyra,

You can find the colors of each palette listed in each theme article that has palettes. For example, check the Fluent help article. You can change the palette colors by setting the corresponding properties of the palette object. For example:
FluentPalette.Palette.AccentColor = Colors.Red;

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
minseok
Top achievements
Rank 1
answered on 17 Dec 2018, 12:54 AM
Thanks Martin.
0
Carlton
Top achievements
Rank 1
answered on 13 Jan 2021, 05:54 AM
The Fluent Theme has two color variations, that are designed to be easily modified via the exposed colors in the theme palette.

Tags
General Discussions
Asked by
minseok
Top achievements
Rank 1
Answers by
Dyra
Top achievements
Rank 1
Martin Ivanov
Telerik team
minseok
Top achievements
Rank 1
Carlton
Top achievements
Rank 1
Share this question
or