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

[Solved] Change background of RadRibbonWindow

1 Answer 428 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Jan 2019, 04:11 PM

I'm using the fluent theme, but I'd like to change the RadRibbonWindow's background to a darker color. That's easy to achieve by setting the Background property. However, since the title bar's foreground is black, it is almost impossible to see the title and the minimize/maximize/close buttons anymore when I'm using a very dark color..

I've found a style defiition for telerikRibbonViewPrimitives:WindowTitle in Telerik.Windows.Controls.RibbonView.xaml and changed the Foreground color to white. This works for the title, but how can I change the color of the minimize/maximize/close buttons?

I've seen that I could do that by setting FluentPalette.Palette.IconColor, but this changes all icons, not only the window icons.

 

Thanks for your help!

Michael

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 16 Jan 2019, 03:42 PM
Hello Michael,

The recommended approach in such a scenario would be to use the Dark variation of the Fluent theme.

FluentPalette.LoadPreset(FluentPalette.ColorVariation.Dark);

If you do not find this applicable, however, you can change the Foreground inside the RadRibbonWindowMinimizeButtonStyle, RadRibbonWindowCloseButtonStyle and RadRibbonWindowToggleButtonStyle which are used inside the style of the RadRibbonWindow.

For your convenience, I've attached a small sample project where I've applied these modifications.

Please have a look and let me know if the same approach would work in your project as well.

Regards,
Dilyan Traykov
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
RibbonView and RibbonWindow
Asked by
Michael
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or