Hello,
Using Delphi 12.1 + IOS 16.7
Text are not visible (because of Style ?) on some demo like FillnGaps, CustomDrawMath etc :
FillnGaps Text is not visible
Text not visible for some demo on IOS 16.7
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Text not visible for some demo on IOS 16.7
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.
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.