Skip to content

Commit

Permalink
Remove dependence on IcoMoon font from Endgame
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsey0 committed Apr 12, 2020
1 parent 6b5e7a3 commit 4e1cfb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Advisor/Layout/DialogView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<Style x:Key="MoonButton" TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White" />
<Setter Property="FontSize" Value="20" />
<Setter Property="FontFamily" Value="pack://application:,,,/EndGame;component/Resources/#icomoon-min" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
Expand Down Expand Up @@ -43,7 +42,7 @@
Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"
Width="32" FontSize="24" Margin="-12,0,6,0"
Style="{StaticResource MoonButton}"
Content="&#xea08;" />
Content="" />
<TextBlock x:Name="TitleText"
Grid.Column="1" Grid.Row="0"
Margin="6,0,0,0"
Expand All @@ -60,6 +59,6 @@
Width="32" FontSize="24" Margin="8,0"
Style="{StaticResource MoonButton}"
Click="Button_Click"
Content="&#xea0d;" />
Content="&#x274C;" />
</Grid>
</UserControl>
9 changes: 3 additions & 6 deletions Advisor/Layout/DialogView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ public void SetUtilityButton(Action action, string icon)
switch (icon.ToLower())
{
case "download":
unicode = "\ue9c5"; break;
unicode = "\u21e9"; break;
case "error":
unicode = "\uea0e"; break;
case "github":
unicode = "\ueab0"; break;
case "info":
unicode = "\u20e0"; break;
default:
unicode = "\uea08"; break;
unicode = "!"; break;
}

UtilityButton.Content = unicode;
Expand Down

0 comments on commit 4e1cfb8

Please sign in to comment.