Skip to content

Commit

Permalink
Merge pull request #140 from clover-yan/patch/1
Browse files Browse the repository at this point in the history
交换 LockSmith 图标
  • Loading branch information
Raspberry-Monster authored Jun 3, 2024
2 parents 583339f + fb0440e commit b5352a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Ink Canvas/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@
IsEnabled="{Binding ElementName=BtnRedo, Path=IsEnabled}"
MouseUp="SymbolIconRedo_MouseUp" MouseDown="Border_MouseDown"/>
<ui:SymbolIcon x:Name="LockSmithSymbol"
Symbol="UnPin" Foreground="{DynamicResource FloatBarForeground}" Margin="-2,0,0,0"
Symbol="Pin" Foreground="{DynamicResource FloatBarForeground}" Margin="-2,0,0,0"
MouseUp="SymbolIconPin_MouseUp" MouseDown="Border_MouseDown"/>
</ui:SimpleStackPanel>
<ui:SimpleStackPanel Orientation="{Binding ElementName=StackPanelFloatingBar, Path=Orientation}">
Expand Down
4 changes: 2 additions & 2 deletions Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7236,8 +7236,8 @@ private void SaveInkCanvasStrokes(bool newNotice = true)
private void SymbolIconPin_MouseUp(object sender, MouseButtonEventArgs e)
{
_lockSmith = !_lockSmith;
if (_lockSmith) LockSmithSymbol.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Pin;
else LockSmithSymbol.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.UnPin;
if (_lockSmith) LockSmithSymbol.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.UnPin;
else LockSmithSymbol.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Pin;
}

private void SymbolIconOpenStrokes_MouseUp(object sender, MouseButtonEventArgs e)
Expand Down

0 comments on commit b5352a3

Please sign in to comment.