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

6 posts, 0 answers
  1. minseok
    minseok avatar
    6 posts
    Member since:
    Mar 2017

    Posted 05 Dec 2018 Link to this post

    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)?

     

     

     

     

  2. Dyra
    Dyra avatar
    2 posts
    Member since:
    Dec 2018

    Posted 10 Dec 2018 in reply to minseok Link to this post

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

    Thanks.

  3. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2425 posts

    Posted 10 Dec 2018 Link to this post

    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.
  4. Dyra
    Dyra avatar
    2 posts
    Member since:
    Dec 2018

    Posted 11 Dec 2018 Link to this post

    Thanks martin,

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

     

    thanks, san

    https://www.kissanime.vip/

  5. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2425 posts

    Posted 14 Dec 2018 Link to this post

    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.
  6. minseok
    minseok avatar
    6 posts
    Member since:
    Mar 2017

    Posted 16 Dec 2018 Link to this post

    Thanks Martin.
Back to Top