Skip to content

Commit

Permalink
drawable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Programming-With-Chris committed Aug 17, 2022
1 parent 73aac39 commit d24d75c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,4 @@ MigrationBackup/
FodyWeavers.xsd
/ShoppingList/Resources/Raw/krogerapiconfig.json
/ShoppingList/Resources/Raw/krogerapiconfig-test.json
/ShoppingList/Controls/CircularButton.cs
4 changes: 2 additions & 2 deletions ShoppingList/Controls/CircularButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public Color ButtonColor

public CircularButton()
{
var drawable = new ShoppingList.Drawable.CircularButton();
var drawable = new ShoppingList.Drawable.CircularButtonDrawable();
Drawable = drawable;
}

static void OnButtonColorChanged(BindableObject bindable, object oldValue, object newValue)
{
var control = (CircularButton)bindable;
var buttonColor = control.ButtonColor;
var thisDrawable = control.Drawable as ShoppingList.Drawable.CircularButton;
var thisDrawable = control.Drawable as ShoppingList.Drawable.CircularButtonDrawable;
thisDrawable.ButtonColor = buttonColor;
control.Invalidate();
}
Expand Down

0 comments on commit d24d75c

Please sign in to comment.