Change foreground brush for numeric characters

Hi

When using Theme FluentDark,  foreground color for numeric characters is unreadable


Fluent Dark Theme (EditControl background is set to transparent and foreground to white)

EditControlFluentDark.JPG


Fluent Dark Theme (EditControl background is set to white and foreground to black)

EditControlFluentDark2.JPG


So, how can i change foreground color for numeric characters?


Thanks

Michele


6 Replies 1 reply marked as answer

SA Sulthan Amanu Syncfusion Team April 18, 2022 06:53 PM UTC

Hi Michele,


We are checking the reported issue. We will provide further details on April 20, 2022. We appreciate your patience until then.


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team April 20, 2022 06:03 PM UTC

Hi Michele,


We are still checking the reported issue. We will provide further details on April 21, 2022. We appreciate your patience until then.


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team April 22, 2022 06:18 PM UTC

Hi Michele,


Currently, dark theme is not supported for some of the characters in the edit control. We are planning to log this as feature request. We will share the details on Apr 25, 2022.


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team April 25, 2022 01:40 PM UTC

Hi Michele,


You can resolve the reported issue by setting the Foreground for NumberFormat at the sample level while using the dark theme, as shown in the code snippet below.


Code snippet:


 

  List<EditFormats> list= edit.CurrentLanguage.Formats.Cast<EditFormats>().ToList();

 

 

            for(int i=0;i<list.Count-1;i++)

            {

                if ((list[i] as EditFormats).FormatName == "NumberFormat")

                {

                    (list[i] as EditFormats).Foreground = Brushes.Red;

                }

            }

 

            edit.CurrentLanguage.Formats = list;

 

 

 


Please let us know if you need any further assistance on this.


Regards,

Sulthan Amanu


Marked as answer

MI Michele April 26, 2022 08:15 AM UTC

Hi Sulthan

Thanks, it works!


Problem solved


Michele



ME Manivannan Elangovan Syncfusion Team April 26, 2022 11:34 AM UTC

Hi Michele,


We are glad to know that your issue has been resolved. Please let us know if you need any other assistance. We will be happy to assist you.

Regards,
Manivannan E


Loader.
Up arrow icon