Skip to content

Commit 939d554

Browse files
committed
feat: ✨ Better icons
1 parent 64189e7 commit 939d554

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

AI.NET/AI.NET.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28+
<PackageReference Include="FluentIcons.Wpf" Version="1.1.278" />
2829
<PackageReference Include="HandyControl" Version="3.5.1" />
2930
<PackageReference Include="log4net" Version="3.0.3" />
3031
<PackageReference Include="MdXaml" Version="1.27.0" />

AI.NET/Windows/MainWindow.xaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66
xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml"
77
xmlns:hc="https://handyorg.github.io/handycontrol"
8+
xmlns:ic="clr-namespace:FluentIcons.Wpf;assembly=FluentIcons.Wpf"
89
xmlns:local="clr-namespace:AI.NET"
910
xmlns:data="clr-namespace:AI.NET.Data"
1011
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
@@ -25,13 +26,13 @@
2526
</Grid.RowDefinitions>
2627
<StackPanel>
2728
<Button x:Name="settingButton" Click="SettingButton_Click" Margin="5" ToolTip="{x:Static strings:Strings.Setting}">
28-
<svgc:SvgViewbox Source="Resources/Icons/settings.svg"></svgc:SvgViewbox>
29+
<ic:FluentIcon Icon="Settings"/>
2930
</Button>
3031
<Button x:Name="aboutButton" Click="AboutButton_Click" Margin="5" ToolTip="{x:Static strings:Strings.About}">
31-
<svgc:SvgViewbox Source="Resources/Icons/info.svg"></svgc:SvgViewbox>
32+
<ic:FluentIcon Icon="Info"/>
3233
</Button>
3334
<Button x:Name="systemPromptButton" Click="SystemPromptButton_Click" ToolTip="{x:Static strings:Strings.SystemPrompt}" Margin="5">
34-
<svgc:SvgViewbox Source="Resources/Icons/terminal.svg"></svgc:SvgViewbox>
35+
<ic:FluentIcon Icon="WindowConsole"/>
3536
</Button>
3637
</StackPanel>
3738
</Grid>
@@ -57,13 +58,13 @@
5758
<TextBox x:Name="userInputBox" Grid.Row="3" FontSize="15" TextWrapping="Wrap" AcceptsReturn="True" TextAlignment="Left"/>
5859
<StackPanel Grid.Row="4" Orientation="Horizontal">
5960
<ToggleButton x:Name="sendButton" Style="{StaticResource ToggleButtonLoading}" Click="SendButton_Click" Margin="10,0,0,0" ToolTip="{x:Static strings:Strings.SendMessage}">
60-
<svgc:SvgViewbox Source="Resources/Icons/send.svg"></svgc:SvgViewbox>
61+
<ic:FluentIcon Icon="Send" IconVariant="Color" Foreground="#FF2CBB25"/>
6162
</ToggleButton>
6263
<Button x:Name="newButton" Click="NewChatButton_Click" Margin="10,0,0,0" ToolTip="{x:Static strings:Strings.NewChat}">
63-
<svgc:SvgViewbox Source="Resources/Icons/file-plus.svg"></svgc:SvgViewbox>
64+
<ic:FluentIcon Icon="CommentAdd" IconVariant="Regular"/>
6465
</Button>
6566
<Button x:Name="deleteChatButton" Click="DeleteChatButton_Click" Margin="10,0,0,0" ToolTip="{x:Static strings:Strings.DeleteChat}">
66-
<svgc:SvgViewbox Source="Resources/Icons/trash.svg"></svgc:SvgViewbox>
67+
<ic:FluentIcon Icon="Delete" IconVariant="Filled" Foreground="Red"/>
6768
</Button>
6869
</StackPanel>
6970
</Grid>

AI.NET/Windows/SystemPrompt.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:local="clr-namespace:AI.NET.Windows"
77
xmlns:hc="https://handyorg.github.io/handycontrol"
88
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
9+
xmlns:ic="clr-namespace:FluentIcons.Wpf;assembly=FluentIcons.Wpf"
910
xmlns:strings="clr-namespace:AI.NET.Resources.Strings"
1011
mc:Ignorable="d"
1112
xmlns:data="clr-namespace:AI.NET.Data"
@@ -24,8 +25,12 @@
2425
<ColumnDefinition/>
2526
<ColumnDefinition/>
2627
</Grid.ColumnDefinitions>
27-
<Button Grid.Column="0" Content="Add" Click="AddButton_Click" Margin="5"/>
28-
<Button Grid.Column="1" Content="Delete" Click="DeleteButton_Click" Margin="5"/>
28+
<Button Grid.Column="0" Click="AddButton_Click" Margin="5">
29+
<ic:FluentIcon Icon="Add"/>
30+
</Button>
31+
<Button Grid.Column="1" Click="DeleteButton_Click" Margin="5">
32+
<ic:FluentIcon Icon="Delete"/>
33+
</Button>
2934
</Grid>
3035
</Grid>
3136
</hc:Window>

0 commit comments

Comments
 (0)