Text not visible for some demo on IOS 16.7

General TRichView support forum. Please post your questions here
Post Reply
Fab85
Posts: 10
Joined: Tue Apr 09, 2024 6:02 am

Text not visible for some demo on IOS 16.7

Post by Fab85 »

Hello,

Using Delphi 12.1 + IOS 16.7
Text are not visible (because of Style ?) on some demo like FillnGaps, CustomDrawMath etc :
2024-04-12 - 10.55.15.jpg
2024-04-12 - 10.55.15.jpg (23.26 KiB) Viewed 14708 times
FillnGaps Text is not visible
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Text not visible for some demo on IOS 16.7

Post by Sergey Tkachenko »

I believe this is really a style issue.
If you do not specify TRichViewEdit.Color (it is Null by default), no special background will be drawn, and a background from FMX style will be used ("memostyle" by default).
As for text color, it is defined in TRVStyle.TextStyles[], and Black for normal text.
So, if a style has a black background, it will be black on black.
FireMonkey does not have system colors, so I cannot use constants like clWindowText.

Currently, the only solution is to change colors in TextStyles manually.
In future, probably, I'll introduce TRichView own color themes.
Post Reply