GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(domain): create component config classes for workspaces and clock components
Lars Berger2d14ce07b9dd
diff --git a/GlazeWM.Domain/UserConfigs/BarComponentConfig.cs b/GlazeWM.Domain/UserConfigs/BarComponentConfig.csindex a9e5224a..53dbf61c 100644--- a/GlazeWM.Domain/UserConfigs/BarComponentConfig.cs+++ b/GlazeWM.Domain/UserConfigs/BarComponentConfig.cs@@ -1,7 +1,12 @@+using System.ComponentModel.DataAnnotations;+namespace GlazeWM.Domain.UserConfigs{public class BarComponentConfig : CommonBarAttributes{+ [Required]+ public string Type { get; set; }+public string Margin { get; set; } = "0 10 0 0";}}diff --git a/GlazeWM.Domain/UserConfigs/ClockComponentConfig.cs b/GlazeWM.Domain/UserConfigs/ClockComponentConfig.csnew file mode 100644index 00000000..f7f6ffdf--- /dev/null+++ b/GlazeWM.Domain/UserConfigs/ClockComponentConfig.cs@@ -0,0 +1,6 @@+namespace GlazeWM.Domain.UserConfigs+{+ public class ClockComponentConfig : BarComponentConfig+ {+ }+}diff --git a/GlazeWM.Domain/UserConfigs/WorkspacesComponentConfig.cs b/GlazeWM.Domain/UserConfigs/WorkspacesComponentConfig.csnew file mode 100644index 00000000..7a53eb86--- /dev/null+++ b/GlazeWM.Domain/UserConfigs/WorkspacesComponentConfig.cs@@ -0,0 +1,6 @@+namespace GlazeWM.Domain.UserConfigs+{+ public class WorkspacesComponentConfig : BarComponentConfig+ {+ }+}