You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The password field's show/hide icon does not automatically update when the app theme changes (e.g., between light and dark themes). When switching themes, the icon remains unchanged, which affects the UI consistency.
Steps to Reproduce:
Add a TextFieldPasswordShowHideAttachment to the TextField control for the password field, as shown below:
Run the application with any theme, such as light.
Change the theme to dark and observe the password field's show/hide icon.
Expected Behavior:
The show/hide icon should automatically update to match the current theme (light or dark).
Actual Behavior:
The icon does not change when the theme is switched, causing inconsistency with the application's overall theme.
Proposed Solution:
Consider using an extension method, SetAppTheme, on the icon to ensure it updates based on the current theme. This would enable the icon to match the theme dynamically.
The text was updated successfully, but these errors were encountered:
private Path GetPathFromData(Geometry data)
{
var path = new Path
{
VerticalOptions = LayoutOptions.Center,
Data = data,
};
// Set the Fill color based on the current theme
path.SetAppThemeColor(Path.FillProperty,
light: ColorResource.GetColor("OnBackground").WithAlpha(0.5f),
dark: ColorResource.GetColor("OnBackgroundDark").WithAlpha(0.5f));
return path;
}
The password field's show/hide icon does not automatically update when the app theme changes (e.g., between light and dark themes). When switching themes, the icon remains unchanged, which affects the UI consistency.
Steps to Reproduce:
Run the application with any theme, such as light.
Change the theme to dark and observe the password field's show/hide icon.
Expected Behavior:
The show/hide icon should automatically update to match the current theme (light or dark).
Actual Behavior:
The icon does not change when the theme is switched, causing inconsistency with the application's overall theme.
Proposed Solution:
Consider using an extension method, SetAppTheme, on the icon to ensure it updates based on the current theme. This would enable the icon to match the theme dynamically.
The text was updated successfully, but these errors were encountered: