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
Describe the bug
First of all, great project and I really appreciate the work put into this project!
As the title says, the SelectorColor of SelectableButton is not updated when I changed my application theme in MAUI, and also when the SelectableButton is under a SelectionView control.
To Reproduce
Steps to reproduce the behavior:
Change the theme
Select any SelectableButton
See that the SelectableButtonSelectedColor is the same as the SelectedColor of last theme
Expected behavior
The SelectedColor of SelectableButton should update according to the set theme
Desktop (please complete the following information):
Windows 11
Chrome
Smartphone (please complete the following information):
Device: Pixel 7 Pro
OS: Android
Stock browser
Android 14
Additional context
My temporary workaround for this issue works by looping through all the children of SelectionView and setting the SelectedColor of each SelectableButton to the correct color depending on the theme every time the page is loaded.
My guess is that the problem is around here.
And here is my untested patch for this issue:
publicColorColor{get =>(Color)GetValue(ColorProperty);
set
{
SetValue(ColorProperty, value);
OnPropertyChanged();foreach(var item in Children)if(item is SelectableButton)(item as SelectableButton).SelectedColor =value;}}
The text was updated successfully, but these errors were encountered:
Describe the bug
First of all, great project and I really appreciate the work put into this project!
As the title says, the
SelectorColor
ofSelectableButton
is not updated when I changed my application theme in MAUI, and also when theSelectableButton
is under aSelectionView
control.To Reproduce
Steps to reproduce the behavior:
SelectableButton
SelectedColor
is the same as theSelectedColor
of last themeExpected behavior
The
SelectedColor
ofSelectableButton
should update according to the set themeDesktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
My temporary workaround for this issue works by looping through all the children of
SelectionView
and setting theSelectedColor
of eachSelectableButton
to the correct color depending on the theme every time the page is loaded.My guess is that the problem is around here.
And here is my untested patch for this issue:
The text was updated successfully, but these errors were encountered: