Skip to content

Commit

Permalink
Removes MaterialTextBoxBorderBrush from a list of animated brushes to…
Browse files Browse the repository at this point in the history
… fix TextBox border brush change problem when theme changes. #262
  • Loading branch information
SKProCH committed Nov 23, 2023
1 parent a92922d commit 5d885b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Material.Styles/Themes/MaterialThemeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ internal IResourceDictionary InternalResources {
{ "MaterialColumnHeaderBrush", theme => theme.ColumnHeader },
{ "MaterialCheckBoxOffBrush", theme => theme.CheckBoxOff },
{ "MaterialCheckBoxDisabledBrush", theme => theme.CheckBoxDisabled },
{ "MaterialTextBoxBorderBrush", theme => theme.TextBoxBorder },
// Workaround for TextBlock text color does not changing: https://github.com/AvaloniaCommunity/Material.Avalonia/issues/262
// Comment should be removed when https://github.com/AvaloniaUI/Avalonia/issues/12408 fixed
// { "MaterialTextBoxBorderBrush", theme => theme.TextBoxBorder },
{ "MaterialDividerBrush", theme => theme.Divider },
{ "MaterialSelectionBrush", theme => theme.Selection },
{ "MaterialToolForegroundBrush", theme => theme.ToolForeground },
Expand Down

0 comments on commit 5d885b9

Please sign in to comment.