Convert back to icon until data binding is figured out

This commit is contained in:
Pat Hartl 2023-01-20 00:22:10 -06:00
parent 4bd8a9a018
commit 749a430217

View file

@ -14,6 +14,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media; using System.Windows.Media;
using YamlDotNet.Serialization; using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions; using YamlDotNet.Serialization.NamingConventions;
@ -233,10 +234,11 @@ namespace LANCommander.PlaynitePlugin
Title = "Click to change your name (All Games)", Title = "Click to change your name (All Games)",
Icon = new TextBlock Icon = new TextBlock
{ {
Text = Settings.PlayerName, Text = char.ConvertFromUtf32(0xeded),
FontSize = 16, FontSize = 16,
FontFamily = ResourceProvider.GetResource("FontIcoFont") as FontFamily, FontFamily = ResourceProvider.GetResource("FontIcoFont") as FontFamily,
Padding = new Thickness(10, 0, 10, 0), Padding = new Thickness(10, 0, 10, 0),
}, },
Activated = () => { Activated = () => {
ShowNameChangeWindow(); ShowNameChangeWindow();