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

COLOR THEME GENERATOR

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 02 Aug 2019, 05:30 PM

https://demos.telerik.com/wpf/colorthemegenerator/

Where is the documentation on how to use it ? I found a button on the bottom right that copies the colour settings to the clipboard...ok...how do I use them after that ?

Thanks,

Barry

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Aug 2019, 08:20 AM

Hello Barry,

The Color Theme Generator application is documented in the following article: https://docs.telerik.com/devtools/wpf/styling-and-appearance/themes-suite/common-styling-color-theme-generator. However, there is a room for improvement in the article. We have this included in our documentation backlog.

After you copy the palette color settings, you can paste them in your application, before the initialization of the UI (before the InitializeComponent call). For example:

public MainWindow()
{
    CrystalPalette.Palette.PrimaryBackgroundColor = (Color)ColorConverter.ConvertFromString("#FFFFFFFF");
    CrystalPalette.Palette.HeaderHighColor = (Color)ColorConverter.ConvertFromString("#FFE8E6E6");
    CrystalPalette.Palette.HeaderLowColor = (Color)ColorConverter.ConvertFromString("#FFD4D0D0");
    CrystalPalette.Palette.ReadOnlyBackgroundColor = (Color)ColorConverter.ConvertFromString("#FFFFFFFF");
    CrystalPalette.Palette.ReadOnlyBorderColor = (Color)ColorConverter.ConvertFromString("#FFA4A3A4");
    CrystalPalette.Palette.DisabledOpacity = 0.35;
    CrystalPalette.Palette.InputOpacity = 0.65;
    CrystalPalette.Palette.ReadOnlyOpacity = 0.55;
 
    InitializeComponent();
}

I hope this information is useful.

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.
Tags
General Discussions
Asked by
Barry
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or