diff --git a/Ink Canvas/Controls/ToolbarImageButton.xaml.cs b/Ink Canvas/Controls/ToolbarImageButton.xaml.cs index 8c52132b..9892a099 100644 --- a/Ink Canvas/Controls/ToolbarImageButton.xaml.cs +++ b/Ink Canvas/Controls/ToolbarImageButton.xaml.cs @@ -43,6 +43,16 @@ namespace Ink_Canvas.Controls public GeometryDrawing GeometryDrawing => IconGeometryInternal; + public static readonly DependencyProperty IconBrushProperty = DependencyProperty.Register( + nameof(IconBrush), typeof(Brush), typeof(ToolbarImageButton), + new PropertyMetadata(null, (d, e) => ((ToolbarImageButton)d).IconGeometryInternal.Brush = (Brush)e.NewValue)); + + public Brush IconBrush + { + get => (Brush)GetValue(IconBrushProperty); + set => SetValue(IconBrushProperty, value); + } + public new Brush Background { get => ButtonPanel.Background; diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index c08fd967..ed62b2db 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -7939,6 +7939,7 @@ ButtonMouseDown="FloatingBarToolBtnMouseDownFeedback_Panel" ButtonMouseLeave="FloatingBarToolBtnMouseLeaveFeedback_Panel" ButtonMouseUp="SymbolIconDelete_MouseUp" + IconBrush="{DynamicResource RedBrush}" Label="{i18n:I18n Key=FloatingBar_Clear}" /> diff --git a/Ink Canvas/MainWindow_cs/MW_AutoTheme.cs b/Ink Canvas/MainWindow_cs/MW_AutoTheme.cs index 58458cd0..a0476bfa 100644 --- a/Ink Canvas/MainWindow_cs/MW_AutoTheme.cs +++ b/Ink Canvas/MainWindow_cs/MW_AutoTheme.cs @@ -173,8 +173,6 @@ namespace Ink_Canvas SetAllFloatingBarButtonsToColor(FloatBarForegroundColor); - SymbolIconDelete.Icon.Brush = new SolidColorBrush(Color.FromRgb(239, 68, 68)); - switch (_currentToolMode) { case "cursor":