Unplanned
Last Updated: 15 Jun 2022 13:07 by Brad
Brad
Created on: 10 Feb 2022 19:53
Category: UI for Blazor
Type: Feature Request
8
Global ThemeColor, Size, Shape, Rounded, FontSize, and FillMode
It would be fantastic to be able to set a default ThemeColor to apply to all Telerik components site wide. This would prevent us from needing to set ThemeColor on every component individually. 
3 comments
Brad
Posted on: 15 Jun 2022 13:07
Constantinos, we ended up implementing a singleton with constants to handle these needs. We do still need to apply that to every component, which isn't ideal but is certainly functional. 
Constantinos Petridis
Posted on: 15 Jun 2022 12:35

This should not be only about ThemeColor, but for all theme options (ThemeColor, Size, Shape, Rounded, and FillMode).

What about using TelerikRootComponent as the starting point for globally giving values to theme options?

ADMIN
Apostolos
Posted on: 17 Feb 2022 12:40

Hi Brad,

I agree with you that a global ThemeColor can be a useful feature.

This is a valid request and I changed its status to Unplanned. You will receive future notifications about updates.

In the meantime, you can use a separate component that inherits a Telerik component. You can set the ThemeColor in the constructor.

Another way is to use CascadingValues and CascadingParameters to set the ThemeColor in a single location and make changes easier.

Both solutions are valid, but they will not change the ThemeColor globally in an existing application. I am mentioning them for visibility for someone that has an early-stage project.

Regards,
Apostolos
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.