Skip to content

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

fix: fallback to default label for component separators (#229)

lars-berger6d3905f975eb
diff --git a/GlazeWM.Bootstrapper/sample-config.yaml b/GlazeWM.Bootstrapper/sample-config.yaml
index a7b268d9..f87d5dcb 100644
--- a/GlazeWM.Bootstrapper/sample-config.yaml
+++ b/GlazeWM.Bootstrapper/sample-config.yaml
@@ -18,8 +18,6 @@ bar:
offset_x: "0"
offset_y: "0"
border_radius: "0"
- component_separator:
- label: " | "
components_left:
- type: "workspaces"
focused_workspace_background: "#ffffff33"
@@ -39,7 +37,7 @@ bar:
margin: "0 4px 0 0"
padding: "0 8px"
- type: "clock"
- # supported time format specifier:
+ # Documentation on formatting date/time string:
# https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
time_formatting: "hh:mm tt ddd MMM d"
margin: "0 0 0 10px"
diff --git a/GlazeWM.Domain/UserConfigs/BarComponentSeparatorConfig.cs b/GlazeWM.Domain/UserConfigs/BarComponentSeparatorConfig.cs
index b2e72480..ab2e9360 100755
--- a/GlazeWM.Domain/UserConfigs/BarComponentSeparatorConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/BarComponentSeparatorConfig.cs
@@ -3,8 +3,8 @@ namespace GlazeWM.Domain.UserConfigs
public class BarComponentSeparatorConfig
{
public string Label { get; set; } = "";
- public string LabelLeft { get; set; } = "";
- public string LabelCenter { get; set; } = "";
- public string LabelRight { get; set; } = "";
+ public string LabelLeft { get; set; }
+ public string LabelCenter { get; set; }
+ public string LabelRight { get; set; }
}
}