Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix: embedded icon font not displaying correctly (#398)

lars-bergerb19c72d38631
diff --git a/GlazeWM.App/GlazeWM.App.csproj b/GlazeWM.App/GlazeWM.App.csproj
index 20c07bb2..219e5996 100644
--- a/GlazeWM.App/GlazeWM.App.csproj
+++ b/GlazeWM.App/GlazeWM.App.csproj
@@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7-windows10.0.17763.0</TargetFramework>
+ <UseWindowsForms>true</UseWindowsForms>
<DebugType>embedded</DebugType>
<ApplicationIcon>Resources\icon.ico</ApplicationIcon>
<AssemblyName>GlazeWM</AssemblyName>
diff --git a/GlazeWM.Domain/UserConfigs/NetworkComponentConfig.cs b/GlazeWM.Domain/UserConfigs/NetworkComponentConfig.cs
index e25014ce..cc04eb28 100644
--- a/GlazeWM.Domain/UserConfigs/NetworkComponentConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/NetworkComponentConfig.cs
@@ -5,35 +5,30 @@ namespace GlazeWM.Domain.UserConfigs
/// <summary>
/// Label for wifi at 0% RSSI.
/// </summary>
- public string LabelWifiStrength0 { get; set; } = "  ";
+ public string LabelWifiStrength0 { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for wifi at 25% RSSI.
/// </summary>
- public string LabelWifiStrength25 { get; set; } = "  ";
+ public string LabelWifiStrength25 { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for wifi at 50% RSSI.
/// </summary>
- public string LabelWifiStrength50 { get; set; } = "  ";
+ public string LabelWifiStrength50 { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for wifi at 75% RSSI.
/// </summary>
- public string LabelWifiStrength75 { get; set; } = "  ";
+ public string LabelWifiStrength75 { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for wifi at 100% RSSI.
/// </summary>
- public string LabelWifiStrength100 { get; set; } = "  ";
+ public string LabelWifiStrength100 { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for ethernet connection.
/// </summary>
- public string LabelEthernet { get; set; } = "  ";
+ public string LabelEthernet { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Label for connection to the internet.
/// </summary>
- public string LabelNoInternet { get; set; } = "  ";
-
- public NetworkComponentConfig()
- {
- FontFamily = "GlazeWM.App.Resources#Material Icons";
- }
+ public string LabelNoInternet { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
}
}
diff --git a/GlazeWM.Domain/UserConfigs/SystemTrayComponentConfig.cs b/GlazeWM.Domain/UserConfigs/SystemTrayComponentConfig.cs
index 2dd1ab30..7d8a8e00 100644
--- a/GlazeWM.Domain/UserConfigs/SystemTrayComponentConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/SystemTrayComponentConfig.cs
@@ -5,19 +5,11 @@ namespace GlazeWM.Domain.UserConfigs
/// <summary>
/// Expands to show both pinned and unppined icons.
/// </summary>
- public string LabelExpandText { get; set; } = "";
+ public string LabelExpandText { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
/// <summary>
/// Collapse to show only pinned icons.
/// </summary>
- public string LabelCollapseText { get; set; } = "";
-
- /// <summary>
- /// Sets default icon font if one isn't specified.
- /// </summary>
- public SystemTrayComponentConfig()
- {
- FontFamily = "GlazeWM.App.Resources#Material Icons";
- }
+ public string LabelCollapseText { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>";
}
}
diff --git a/GlazeWM.Domain/UserConfigs/VolumeComponentConfig.cs b/GlazeWM.Domain/UserConfigs/VolumeComponentConfig.cs
index 8cb40384..744df85c 100644
--- a/GlazeWM.Domain/UserConfigs/VolumeComponentConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/VolumeComponentConfig.cs
@@ -9,19 +9,19 @@ namespace GlazeWM.Domain.UserConfigs
/// <summary>
/// Label for low volume.
/// </summary>
- public string LabelLow { get; set; } = "<attr ff='GlazeWM.App.Resources#Material Icons'></attr>{volume_level}%";
+ public string LabelLow { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>{volume_level}%";
/// <summary>
/// Label for medium volume.
/// </summary>
- public string LabelMedium { get; set; } = "<attr ff='GlazeWM.App.Resources#Material Icons'></attr>{volume_level}%";
+ public string LabelMedium { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>{volume_level}%";
/// <summary>
/// Label for high volume.
/// </summary>
- public string LabelHigh { get; set; } = "<attr ff='GlazeWM.App.Resources#Material Icons'></attr>{volume_level}%";
+ public string LabelHigh { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>{volume_level}%";
/// <summary>
/// Label for volume mute.
/// </summary>
- public string LabelMute { get; set; } = "<attr ff='GlazeWM.App.Resources#Material Icons'></attr>{volume_level}%";
+ public string LabelMute { get; set; } = "<attr ff='pack://application:,,,/Resources/#Material Icons'></attr>{volume_level}%";
}
}