Last Updated: 05 Aug 2022 10:35 by ADMIN
Created on: 02 Aug 2022 11:22
Category: RichTextEditor
Type: Bug Report
Changing the ApplicationThemeName does not change the text color

When changing the theme through ThemeResolutionService.ApplicationThemeName all the application gets changed. Except the ForeColor of the RadRichTextEditor does not get change. Hence the box displays black text on a dark background. Quite unreadable.

Assigning the theme directly in the designer makes everything renders ok.

Sample application attached.



Attached Files:
1 comment
Dinko | Tech Support Engineer
Posted on: 05 Aug 2022 10:35

Hello Matthias,

Thank you for the provided project. I was able to observe this behavior. In this case, when the Office2019DarkTheme is applied, the BackColor of the radRichTextEditor1.RichTextBoxElement is set. By design, the BackColor in this case should not change. Therefore I have approved the item and changed its status to unplanned. As a workaround, you can set this.radRichTextEditor1.RichTextBoxElement.BackColor to White. I hope that this approach will work for you.

private void RadForm1_Load(object sender, EventArgs e)
    this.radRichTextEditor1.RichTextBoxElement.BackColor = Color.White;

As for the designer steps. I have followed them but still got the same result. In the designer, I have set the Office2019DarkTheme to the control itself. Can you share how you have changed the theme in the designer on your side?

Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.