Revert "Replace SymbolIcon with FontIcon throughout UI"

This reverts commit 37a69032f6.
This commit is contained in:
2025-09-22 13:09:43 +08:00
parent 14c9ce3ce1
commit 091a256bcc
9 changed files with 42 additions and 42 deletions
+6 -6
View File
@@ -5655,7 +5655,7 @@
<Run Text="图形" /> <Run Text="图形" />
<Run Text="(第一行支持长按保持选中)" FontSize="10" /> <Run Text="(第一行支持长按保持选中)" FontSize="10" />
</TextBlock> </TextBlock>
<ui:FontIcon Margin="0,-20,8,15" Glyph="Pin" <ui:SymbolIcon Margin="0,-20,8,15" Symbol="Pin"
MouseDown="Border_MouseDown" MouseDown="Border_MouseDown"
MouseUp="SymbolIconPinBorderDrawShape_MouseUp" MouseUp="SymbolIconPinBorderDrawShape_MouseUp"
Foreground="{DynamicResource FloatBarForeground}" Foreground="{DynamicResource FloatBarForeground}"
@@ -6379,7 +6379,7 @@
Width="50" Height="48" FontSize="26" Click="BtnWhiteBoardAdd_Click" Width="50" Height="48" FontSize="26" Click="BtnWhiteBoardAdd_Click"
Foreground="{Binding ElementName=BtnExit, Path=Foreground}" Foreground="{Binding ElementName=BtnExit, Path=Foreground}"
Background="{Binding ElementName=BtnExit, Path=Background}"> Background="{Binding ElementName=BtnExit, Path=Background}">
<ui:FontIcon Glyph="Add" /> <ui:SymbolIcon Symbol="Add" />
</Button> </Button>
<Button Name="BtnWhiteBoardSwitchPrevious" FontFamily="Symbol" <Button Name="BtnWhiteBoardSwitchPrevious" FontFamily="Symbol"
Width="50" Height="48" FontSize="25" Click="BtnWhiteBoardSwitchPrevious_Click" Width="50" Height="48" FontSize="25" Click="BtnWhiteBoardSwitchPrevious_Click"
@@ -6452,7 +6452,7 @@
Foreground="{Binding ElementName=BtnExit, Path=Foreground}" Foreground="{Binding ElementName=BtnExit, Path=Foreground}"
Background="{Binding ElementName=BtnExit, Path=Background}" Background="{Binding ElementName=BtnExit, Path=Background}"
IsEnabled="False"> IsEnabled="False">
<ui:FontIcon Glyph="Delete" /> <ui:SymbolIcon Symbol="Delete" />
</Button> </Button>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Grid> </Grid>
@@ -6566,7 +6566,7 @@
Background="{Binding ElementName=BtnExit, Path=Background}" Background="{Binding ElementName=BtnExit, Path=Background}"
IsEnabled="False" Visibility="Collapsed" IsEnabledChanged="Btn_IsEnabledChanged"> IsEnabled="False" Visibility="Collapsed" IsEnabledChanged="Btn_IsEnabledChanged">
<StackPanel Opacity="0.2"> <StackPanel Opacity="0.2">
<ui:FontIcon Glyph="Undo" /> <ui:SymbolIcon Symbol="Undo" />
<TextBlock Text="撤销" Margin="0,4,0,0" /> <TextBlock Text="撤销" Margin="0,4,0,0" />
</StackPanel> </StackPanel>
</Button> </Button>
@@ -6576,7 +6576,7 @@
Background="{Binding ElementName=BtnExit, Path=Background}" Background="{Binding ElementName=BtnExit, Path=Background}"
IsEnabled="False" Visibility="Collapsed" IsEnabledChanged="Btn_IsEnabledChanged"> IsEnabled="False" Visibility="Collapsed" IsEnabledChanged="Btn_IsEnabledChanged">
<StackPanel Opacity="0.2"> <StackPanel Opacity="0.2">
<ui:FontIcon Glyph="Redo" /> <ui:SymbolIcon Symbol="Redo" />
<TextBlock Text="恢复" Margin="0,4,0,0" /> <TextBlock Text="恢复" Margin="0,4,0,0" />
</StackPanel> </StackPanel>
</Button> </Button>
@@ -8438,7 +8438,7 @@
<Run Text="图形"/> <Run Text="图形"/>
<Run Text="(第一行支持长按保持选中)" FontSize="10"/> <Run Text="(第一行支持长按保持选中)" FontSize="10"/>
</TextBlock> </TextBlock>
<ui:FontIcon Margin="0,-20,8,15" Glyph="Pin" MouseDown="Border_MouseDown" MouseUp="SymbolIconPinBorderDrawShape_MouseUp" Foreground="{DynamicResource FloatBarForeground}" HorizontalAlignment="Right"/>--> <ui:SymbolIcon Margin="0,-20,8,15" Symbol="Pin" MouseDown="Border_MouseDown" MouseUp="SymbolIconPinBorderDrawShape_MouseUp" Foreground="{DynamicResource FloatBarForeground}" HorizontalAlignment="Right"/>-->
<Border BorderBrush="#1e3a8a" BorderThickness="0,0,0,1" <Border BorderBrush="#1e3a8a" BorderThickness="0,0,0,1"
CornerRadius="8,8,0,0" Background="#2563eb" Margin="-1,-1,-1,0" CornerRadius="8,8,0,0" Background="#2563eb" Margin="-1,-1,-1,0"
Padding="1,1,1,0"> Padding="1,1,1,0">
+3 -3
View File
@@ -1,4 +1,4 @@
using Ink_Canvas.Helpers; using Ink_Canvas.Helpers;
using iNKORE.UI.WPF.Modern.Controls; using iNKORE.UI.WPF.Modern.Controls;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -75,9 +75,9 @@ namespace Ink_Canvas
ToggleSwitchDrawShapeBorderAutoHide.IsOn = !ToggleSwitchDrawShapeBorderAutoHide.IsOn; ToggleSwitchDrawShapeBorderAutoHide.IsOn = !ToggleSwitchDrawShapeBorderAutoHide.IsOn;
if (ToggleSwitchDrawShapeBorderAutoHide.IsOn) if (ToggleSwitchDrawShapeBorderAutoHide.IsOn)
((FontIcon)sender).Glyph = "Pin"; ((SymbolIcon)sender).Symbol = Symbol.Pin;
else else
((FontIcon)sender).Glyph = "UnPin"; ((SymbolIcon)sender).Symbol = Symbol.UnPin;
} }
private object lastMouseDownSender; private object lastMouseDownSender;
+9 -9
View File
@@ -1,4 +1,4 @@
<Window x:Class="Ink_Canvas.CountdownTimerWindow" <Window x:Class="Ink_Canvas.CountdownTimerWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -114,7 +114,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Glyph="Save" Foreground="White"/> <ui:SymbolIcon Symbol="Save" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
</Grid> </Grid>
@@ -179,12 +179,12 @@
<Grid> <Grid>
<Border x:Name="BtnStart" MouseUp="BtnStart_MouseUp" Background="#0066BF" Height="20" Width="20" CornerRadius="100"> <Border x:Name="BtnStart" MouseUp="BtnStart_MouseUp" Background="#0066BF" Height="20" Width="20" CornerRadius="100">
<Viewbox Margin="5"> <Viewbox Margin="5">
<ui:FontIcon Name="SymbolIconStart" Glyph="Play" Foreground="White"/> <ui:SymbolIcon Name="SymbolIconStart" Symbol="Play" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
<Border x:Name="BtnStartCover" Visibility="Collapsed" Background="#BFBFBF" Height="20" Width="20" CornerRadius="100"> <Border x:Name="BtnStartCover" Visibility="Collapsed" Background="#BFBFBF" Height="20" Width="20" CornerRadius="100">
<Viewbox Margin="5"> <Viewbox Margin="5">
<ui:FontIcon Glyph="{Binding ElementName=SymbolIconStart, Path=Glyph}" Foreground="White"/> <ui:SymbolIcon Symbol="{Binding ElementName=SymbolIconStart, Path=Symbol}" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
</Grid> </Grid>
@@ -194,12 +194,12 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.15" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.15" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Glyph="Refresh" Foreground="Black"/> <ui:SymbolIcon Symbol="Refresh" Foreground="Black"/>
</Viewbox> </Viewbox>
</Border> </Border>
<Border x:Name="BtnResetCover" Background="#F3F5F9" Height="20" Width="20" CornerRadius="100"> <Border x:Name="BtnResetCover" Background="#F3F5F9" Height="20" Width="20" CornerRadius="100">
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Glyph="Refresh" Foreground="#9D9D9E"/> <ui:SymbolIcon Symbol="Refresh" Foreground="#9D9D9E"/>
</Viewbox> </Viewbox>
</Border> </Border>
</Grid> </Grid>
@@ -215,7 +215,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Name="SymbolIconMinimal" Glyph="HideBcc" Foreground="Black"/> <ui:SymbolIcon Name="SymbolIconMinimal" Symbol="HideBcc" Foreground="Black"/>
</Viewbox> </Viewbox>
</Border> </Border>
<Border x:Name="BtnFullscreen" MouseUp="BtnFullscreen_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom" <Border x:Name="BtnFullscreen" MouseUp="BtnFullscreen_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom"
@@ -225,7 +225,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Name="SymbolIconFullscreen" Glyph="FullScreen" Foreground="Black"/> <ui:SymbolIcon Name="SymbolIconFullscreen" Symbol="FullScreen" Foreground="Black"/>
</Viewbox> </Viewbox>
</Border> </Border>
<Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom" <Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom"
@@ -235,7 +235,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Glyph="Clear" Foreground="White"/> <ui:SymbolIcon Symbol="Clear" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
@@ -1,4 +1,4 @@
using Ink_Canvas.Helpers; using Ink_Canvas.Helpers;
using System; using System;
using System.Media; using System.Media;
using System.Timers; using System.Timers;
@@ -51,7 +51,7 @@ namespace Ink_Canvas
TextBlockSecond.Text = "00"; TextBlockSecond.Text = "00";
timer.Stop(); timer.Stop();
isTimerRunning = false; isTimerRunning = false;
SymbolIconStart.Glyph = "Play"; SymbolIconStart.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Play;
BtnStartCover.Visibility = Visibility.Visible; BtnStartCover.Visibility = Visibility.Visible;
TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F")); TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F"));
BorderStopTime.Visibility = Visibility.Collapsed; BorderStopTime.Visibility = Visibility.Collapsed;
@@ -202,12 +202,12 @@ namespace Ink_Canvas
if (WindowState == WindowState.Normal) if (WindowState == WindowState.Normal)
{ {
WindowState = WindowState.Maximized; WindowState = WindowState.Maximized;
SymbolIconFullscreen.Glyph = "BackToWindow"; SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.BackToWindow;
} }
else else
{ {
WindowState = WindowState.Normal; WindowState = WindowState.Normal;
SymbolIconFullscreen.Glyph = "FullScreen"; SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.FullScreen;
} }
} }
@@ -232,7 +232,7 @@ namespace Ink_Canvas
BtnStartCover.Visibility = Visibility.Collapsed; BtnStartCover.Visibility = Visibility.Collapsed;
BorderStopTime.Visibility = Visibility.Collapsed; BorderStopTime.Visibility = Visibility.Collapsed;
TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F")); TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F"));
SymbolIconStart.Glyph = "Play"; SymbolIconStart.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Play;
isTimerRunning = false; isTimerRunning = false;
timer.Stop(); timer.Stop();
isPaused = false; isPaused = false;
@@ -282,7 +282,7 @@ namespace Ink_Canvas
startTime += DateTime.Now - pauseTime; startTime += DateTime.Now - pauseTime;
ProcessBarTime.IsPaused = false; ProcessBarTime.IsPaused = false;
TextBlockHour.Foreground = Brushes.Black; TextBlockHour.Foreground = Brushes.Black;
SymbolIconStart.Glyph = "Pause"; SymbolIconStart.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Pause;
isPaused = false; isPaused = false;
timer.Start(); timer.Start();
UpdateStopTime(); UpdateStopTime();
@@ -294,7 +294,7 @@ namespace Ink_Canvas
pauseTime = DateTime.Now; pauseTime = DateTime.Now;
ProcessBarTime.IsPaused = true; ProcessBarTime.IsPaused = true;
TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F")); TextBlockHour.Foreground = new SolidColorBrush(StringToColor("#FF5B5D5F"));
SymbolIconStart.Glyph = "Play"; SymbolIconStart.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Play;
BorderStopTime.Visibility = Visibility.Collapsed; BorderStopTime.Visibility = Visibility.Collapsed;
isPaused = true; isPaused = true;
timer.Stop(); timer.Stop();
@@ -306,7 +306,7 @@ namespace Ink_Canvas
totalSeconds = ((hour * 60) + minute) * 60 + second; totalSeconds = ((hour * 60) + minute) * 60 + second;
ProcessBarTime.IsPaused = false; ProcessBarTime.IsPaused = false;
TextBlockHour.Foreground = Brushes.Black; TextBlockHour.Foreground = Brushes.Black;
SymbolIconStart.Glyph = "Pause"; SymbolIconStart.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.Pause;
BtnResetCover.Visibility = Visibility.Collapsed; BtnResetCover.Visibility = Visibility.Collapsed;
if (totalSeconds <= 10) if (totalSeconds <= 10)
+3 -3
View File
@@ -1,4 +1,4 @@
<Window x:Class="Ink_Canvas.OperatingGuideWindow" <Window x:Class="Ink_Canvas.OperatingGuideWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -80,7 +80,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Name="SymbolIconFullscreen" Glyph="FullScreen" Foreground="Black"/> <ui:SymbolIcon Name="SymbolIconFullscreen" Symbol="FullScreen" Foreground="Black"/>
</Viewbox> </Viewbox>
</Border> </Border>
<Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom" <Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom"
@@ -90,7 +90,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="5.5"> <Viewbox Margin="5.5">
<ui:FontIcon Glyph="Clear" Foreground="White"/> <ui:SymbolIcon Symbol="Clear" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
@@ -1,4 +1,4 @@
using Ink_Canvas.Helpers; using Ink_Canvas.Helpers;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
@@ -30,12 +30,12 @@ namespace Ink_Canvas
if (WindowState == WindowState.Normal) if (WindowState == WindowState.Normal)
{ {
WindowState = WindowState.Maximized; WindowState = WindowState.Maximized;
SymbolIconFullscreen.Glyph = "BackToWindow"; SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.BackToWindow;
} }
else else
{ {
WindowState = WindowState.Normal; WindowState = WindowState.Normal;
SymbolIconFullscreen.Glyph = "FullScreen"; SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.FullScreen;
} }
} }
+5 -5
View File
@@ -1,4 +1,4 @@
<Window x:Class="Ink_Canvas.RandWindow" <Window x:Class="Ink_Canvas.RandWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -98,7 +98,7 @@
<Border x:Name="BorderBtnRand" MouseUp="BorderBtnRand_MouseUp" Background="#0066BF" Height="70" Width="200" CornerRadius="35"> <Border x:Name="BorderBtnRand" MouseUp="BorderBtnRand_MouseUp" Background="#0066BF" Height="70" Width="200" CornerRadius="35">
<ui:SimpleStackPanel Margin="3,0" Spacing="20" Orientation="Horizontal" HorizontalAlignment="Center"> <ui:SimpleStackPanel Margin="3,0" Spacing="20" Orientation="Horizontal" HorizontalAlignment="Center">
<Viewbox Margin="0,20"> <Viewbox Margin="0,20">
<ui:FontIcon Name="SymbolIconStart" Glyph="Contact" Foreground="White"/> <ui:SymbolIcon Name="SymbolIconStart" Symbol="Contact" Foreground="White"/>
</Viewbox> </Viewbox>
<TextBlock Text="开抽" Foreground="White" FontSize="32" Margin="-1,-1,4,0" VerticalAlignment="Center"/> <TextBlock Text="开抽" Foreground="White" FontSize="32" Margin="-1,-1,4,0" VerticalAlignment="Center"/>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
@@ -113,7 +113,7 @@
<Border x:Name="BorderBtnExternalCaller" MouseUp="BorderBtnExternalCaller_MouseUp" Background="#00B894" Height="50" Width="120" CornerRadius="25"> <Border x:Name="BorderBtnExternalCaller" MouseUp="BorderBtnExternalCaller_MouseUp" Background="#00B894" Height="50" Width="120" CornerRadius="25">
<ui:SimpleStackPanel Margin="3,0" Spacing="8" Orientation="Horizontal" HorizontalAlignment="Center"> <ui:SimpleStackPanel Margin="3,0" Spacing="8" Orientation="Horizontal" HorizontalAlignment="Center">
<Viewbox Margin="0,10"> <Viewbox Margin="0,10">
<ui:FontIcon Glyph="Globe" Foreground="White"/> <ui:SymbolIcon Symbol="Globe" Foreground="White"/>
</Viewbox> </Viewbox>
<TextBlock Text="外部点名" Foreground="White" FontSize="16" Margin="-1,-1,4,0" VerticalAlignment="Center"/> <TextBlock Text="外部点名" Foreground="White" FontSize="16" Margin="-1,-1,4,0" VerticalAlignment="Center"/>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
@@ -127,7 +127,7 @@
</Border.Effect> </Border.Effect>
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Viewbox Margin="15,12"> <Viewbox Margin="15,12">
<ui:FontIcon Glyph="People" Foreground="Black"/> <ui:SymbolIcon Symbol="People" Foreground="Black"/>
</Viewbox> </Viewbox>
<TextBlock Margin="-5,12,15,12" Name="TextBlockPeopleCount" Text="点击此处以导入名单" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/> <TextBlock Margin="-5,12,15,12" Name="TextBlockPeopleCount" Text="点击此处以导入名单" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
@@ -137,7 +137,7 @@
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/> <DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
</Border.Effect> </Border.Effect>
<Viewbox Margin="14"> <Viewbox Margin="14">
<ui:FontIcon Glyph="Clear" Foreground="White"/> <ui:SymbolIcon Symbol="Clear" Foreground="White"/>
</Viewbox> </Viewbox>
</Border> </Border>
</Canvas> </Canvas>
+3 -3
View File
@@ -1,4 +1,4 @@
using Ink_Canvas.Helpers; using Ink_Canvas.Helpers;
using iNKORE.UI.WPF.Modern.Controls; using iNKORE.UI.WPF.Modern.Controls;
using Microsoft.VisualBasic; using Microsoft.VisualBasic;
using System; using System;
@@ -121,7 +121,7 @@ namespace Ink_Canvas
if (RandMaxPeopleOneTime != -1 && TotalCount >= RandMaxPeopleOneTime) return; if (RandMaxPeopleOneTime != -1 && TotalCount >= RandMaxPeopleOneTime) return;
TotalCount++; TotalCount++;
LabelNumberCount.Text = TotalCount.ToString(); LabelNumberCount.Text = TotalCount.ToString();
SymbolIconStart.Glyph = "People"; SymbolIconStart.Symbol = Symbol.People;
BorderBtnAdd.Opacity = 1; BorderBtnAdd.Opacity = 1;
BorderBtnMinus.Opacity = 1; BorderBtnMinus.Opacity = 1;
} }
@@ -133,7 +133,7 @@ namespace Ink_Canvas
LabelNumberCount.Text = TotalCount.ToString(); LabelNumberCount.Text = TotalCount.ToString();
if (TotalCount == 1) if (TotalCount == 1)
{ {
SymbolIconStart.Glyph = "Contact"; SymbolIconStart.Symbol = Symbol.Contact;
} }
} }
@@ -1,4 +1,4 @@
<Window x:Class="Ink_Canvas.YesOrNoNotificationWindow" <Window x:Class="Ink_Canvas.YesOrNoNotificationWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -14,7 +14,7 @@
<RowDefinition Height="40"/> <RowDefinition Height="40"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Viewbox HorizontalAlignment="Left" Margin="10" Height="30"> <Viewbox HorizontalAlignment="Left" Margin="10" Height="30">
<ui:FontIcon Glyph="SlideShow" Foreground="{Binding ElementName=Label, Path=Foreground}"/> <ui:SymbolIcon Symbol="SlideShow" Foreground="{Binding ElementName=Label, Path=Foreground}"/>
</Viewbox> </Viewbox>
<TextBlock TextWrapping="Wrap" Name="Label" Margin="60,0,10,0" VerticalAlignment="Center"/> <TextBlock TextWrapping="Wrap" Name="Label" Margin="60,0,10,0" VerticalAlignment="Center"/>
<ui:SimpleStackPanel Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Spacing="10"> <ui:SimpleStackPanel Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal" Spacing="10">