Set same title text color as other windows

Using Syncfusion 16.2 on Windows 10, when I insert RibbonControlAdv and set title, it uses Windows 10 color settings for title bar background color, but not for text color - I have black title color, while MessageBox created dynamically has white text, like other application windows.
Is it possible to use the same text color as other application windows instead of always black? To check this, you need to switch setting Colors > Show accent color on the following surfaces > Title Bars in Windows 10.

Attachment: RibbonForm_wrong_color_ed8d604d.zip

5 Replies

MJ Mythily Jega Jothi Syncfusion Team July 25, 2018 01:53 PM UTC

Hi Marcin,

Our RibbonForm does not have a support for change the text color according to Windows 10 color settings. As we can’t identify the TitleBar’s backcolor changes from OS, we can’t change the forecolor in title bar. We suggest you to use TitleColor property of RibbonControlAdv to change the text color manually in sample level.

Please let us know if you have any concern.

Regards,
Mythily J


MK MARCIN KUROWSKI July 26, 2018 07:10 AM UTC

My concern is if it's possible to get current fore color of title bar at all. Because if it's not, I cannot work around the issue by setting color manually.


MJ Mythily Jega Jothi Syncfusion Team July 27, 2018 07:35 AM UTC

Hi Marcin,

Thank you for the update.

Yes, TitleColor property of RibbonControlAdv holds the current text color of title bar so that you can use this property to change text color at runtime. Please make use of the below code example.

Code Example[C#]:



Please let us know if you require further assistance.

Regards,
Mythily J


MK MARCIN KUROWSKI July 30, 2018 06:20 AM UTC

I understand that following line will change caption color to custom one, but I would like to know if it is possible to select same caption color as Windows 10 UI currently has (even manually, using above line). Color to use is not always white, for some color schemes caption text can be black. My question is if that color is provided anywhere in DLLs.


MJ Mythily Jega Jothi Syncfusion Team July 30, 2018 12:45 PM UTC

Hi Marcin,

RibbonForm does not have a support to change the caption text color according to Windows 10 UI background colors. So, we suggest you to change the TitleColor based on Dark or Light back color of the TitleBar.

Please let us know if you require further assistance on this.

Regards,
Mythily J

Loader.
Up arrow icon