improve:UI

This commit is contained in:
2026-05-01 21:58:09 +08:00
parent 31aee3bd9a
commit 4f5f3ed8fe
10 changed files with 268 additions and 194 deletions
@@ -53,6 +53,20 @@ namespace Ink_Canvas.Controls
set => SetValue(IconBrushProperty, value);
}
public static readonly DependencyProperty LabelBrushProperty = DependencyProperty.Register(
nameof(LabelBrush), typeof(Brush), typeof(ToolbarImageButton),
new PropertyMetadata(null, (d, e) =>
{
var b = (ToolbarImageButton)d;
if (e.NewValue is Brush brush) b.LabelTextBlock.Foreground = brush;
}));
public Brush LabelBrush
{
get => (Brush)GetValue(LabelBrushProperty);
set => SetValue(LabelBrushProperty, value);
}
public new Brush Background
{
get => ButtonPanel.Background;