Open ZeProgFactory opened 11 months ago
I do not believe this is a bug with MAUI; this is the default behavior of the platform.
You've set the background color of an underlying control to a color that can collide with the default selector control of an entry field. This is the same behavior that would happen if you used a UILabel inside of a UIView and set its color to match. UIKit doesn't know the overridden colors of controls to update its styles automatically (Beyond system defaults like Dark/Light mode) so this is something you, as the developer, would need to handle if you wanted to control the colors of your application fully.
That said, I do think there is a bug: If you override your "UserAppTheme" to Light, that should force the cursor to match the "Light" theme and switch to Black. It doesn't.
If your usecase where you are overriding colors that don't match with the defaults on the system (A light color on a dark theme system) the underlying controls should at least sync when you have set the general theme to match your color scheme, and that doesn't seem to be happening.
Verified this issue with Visual Studio for mac 17.6.8 (build 400). Can repro on iOS platforms with sample project. But not sure if this is a bug. https://github.com/ZeProgFactory/MacOSX-Entry-Invisible-cursor
Description
At least on Mac OSX, if you change the
BackgroundColor
of the holding control on anEntry
the Cursor color of this Entry won't follow theTextColor
of theEntry
. So you can get in situation where the cursor color is close to theBackgroundColor
and though invisible.(Observed on a Mac OSX with the system settings set to “Appearance Dark” )
Steps to Reproduce
Entry
to theVerticalStackLayout
on theMainPage
BackgroundColor
of theVerticalStackLayout
and theTextColor
of theEntry
.Link to public reproduction project repository
https://github.com/ZeProgFactory/MacOSX-Entry-Invisible-cursor
Version with bug
7.0.49
Last version that worked well
Unknown/Other
Affected platforms
macOS, I was not able test on other platforms
Affected platform versions
OSX Ventura 13.4.1
Did you find any workaround?
No response
Relevant log output
No response