Skip to content

Commit

Permalink
Fix dialogs buttons default foreground color
Browse files Browse the repository at this point in the history
  • Loading branch information
flarive committed Jan 2, 2024
1 parent 99df9d4 commit 8d51463
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Avalonia.Themes.Neumorphism/Dialogs/DialogButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class DialogButton

public DialogButton()
{
DialogButtonStyle = new DialogButtonStyle(DialogButtonBackgroundColor.Default, DialogButtonForegroundColor.Black);
DialogButtonStyle = new DialogButtonStyle(DialogButtonBackgroundColor.Default, DialogButtonForegroundColor.Default);
}
}
}
2 changes: 1 addition & 1 deletion Avalonia.Themes.Neumorphism/Dialogs/DialogButtonStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public DialogButtonBackgroundColor BackgroundButtonColor
set { _backgroundButtonColor = value; }
}

private DialogButtonForegroundColor _foregroundButtonColor = DialogButtonForegroundColor.Black;
private DialogButtonForegroundColor _foregroundButtonColor = DialogButtonForegroundColor.Default;

public DialogButtonForegroundColor ForegroundButtonColor
{
Expand Down
2 changes: 1 addition & 1 deletion Avalonia.Themes.Neumorphism/Dialogs/DialogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private static DialogButtonViewModel[] CreateObsoleteButtonArray(DialogWindowVie
result[i] = new ResultBasedDialogButtonViewModel(parent, button.Content, button.Result)
{
IsPositiveButton = button.IsPositive,
DialogButtonStyle = button.DialogButtonStyle,
DialogButtonStyle = button.DialogButtonStyle
};
}

Expand Down

0 comments on commit 8d51463

Please sign in to comment.