diff --git a/AngelLoader/Forms/CustomControls/DarkButton.cs b/AngelLoader/Forms/CustomControls/DarkButton.cs
index 7e856a4ea..ecbaf83f9 100644
--- a/AngelLoader/Forms/CustomControls/DarkButton.cs
+++ b/AngelLoader/Forms/CustomControls/DarkButton.cs
@@ -47,9 +47,7 @@ private enum DarkButtonStyle
/// If this control represents a game in some way, you can set its here.
///
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public GameSupport.GameIndex GameIndex { get; set; } = GameSupport.GameIndex.Thief1;
+ public GameSupport.GameIndex GameIndex = GameSupport.GameIndex.Thief1;
#if DEBUG
@@ -65,19 +63,13 @@ private enum DarkButtonStyle
#endif
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeBackColor { get; set; }
+ public Color? DarkModeBackColor;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeHoverColor { get; set; }
+ public Color? DarkModeHoverColor;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModePressedColor { get; set; }
+ public Color? DarkModePressedColor;
[PublicAPI]
public new string Text
diff --git a/AngelLoader/Forms/CustomControls/DarkCheckBox.cs b/AngelLoader/Forms/CustomControls/DarkCheckBox.cs
index 916d4d529..4b212ae7d 100644
--- a/AngelLoader/Forms/CustomControls/DarkCheckBox.cs
+++ b/AngelLoader/Forms/CustomControls/DarkCheckBox.cs
@@ -23,14 +23,10 @@ public sealed class DarkCheckBox : CheckBox, IDarkable
#endregion
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeBackColor { get; set; }
+ public Color? DarkModeBackColor;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeForeColor { get; set; }
+ public Color? DarkModeForeColor;
#if DEBUG
diff --git a/AngelLoader/Forms/CustomControls/DarkCheckList.cs b/AngelLoader/Forms/CustomControls/DarkCheckList.cs
index 995c4e5f0..43d084aca 100644
--- a/AngelLoader/Forms/CustomControls/DarkCheckList.cs
+++ b/AngelLoader/Forms/CustomControls/DarkCheckList.cs
@@ -70,24 +70,16 @@ public DarkCheckListEventArgs(int index, bool @checked, string text)
public CheckItem[] CheckItems = Array.Empty();
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public new Color BackColor { get; set; } = SystemColors.Window;
+ public new Color BackColor = SystemColors.Window;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public new Color ForeColor { get; set; } = SystemColors.ControlText;
+ public new Color ForeColor = SystemColors.ControlText;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color DarkModeBackColor { get; set; } = DarkColors.Fen_ControlBackground;
+ public Color DarkModeBackColor = DarkColors.Fen_ControlBackground;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color DarkModeForeColor { get; set; } = DarkColors.LightText;
+ public Color DarkModeForeColor = DarkColors.LightText;
private bool _darkModeEnabled;
[PublicAPI]
diff --git a/AngelLoader/Forms/CustomControls/DarkLabel.cs b/AngelLoader/Forms/CustomControls/DarkLabel.cs
index 698000ed8..aefc95dd3 100644
--- a/AngelLoader/Forms/CustomControls/DarkLabel.cs
+++ b/AngelLoader/Forms/CustomControls/DarkLabel.cs
@@ -24,14 +24,10 @@ public sealed class DarkLabel : Label, IDarkable
public bool DarkModeEnabled { get; set; }
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeForeColor { get; set; }
+ public Color? DarkModeForeColor;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color? DarkModeBackColor { get; set; }
+ public Color? DarkModeBackColor;
protected override void OnPaint(PaintEventArgs e)
{
diff --git a/AngelLoader/Forms/CustomControls/DarkSplitContainerCustom.cs b/AngelLoader/Forms/CustomControls/DarkSplitContainerCustom.cs
index dd4074a84..af8ca2208 100644
--- a/AngelLoader/Forms/CustomControls/DarkSplitContainerCustom.cs
+++ b/AngelLoader/Forms/CustomControls/DarkSplitContainerCustom.cs
@@ -81,8 +81,8 @@ public bool DarkModeEnabled
internal bool FullScreen { get; private set; }
internal int CollapsedSize = 0;
- internal Color Panel1DarkBackColor { get; set; } = DarkColors.Fen_ControlBackground;
- internal Color Panel2DarkBackColor { get; set; } = DarkColors.Fen_ControlBackground;
+ internal Color Panel1DarkBackColor = DarkColors.Fen_ControlBackground;
+ internal Color Panel2DarkBackColor = DarkColors.Fen_ControlBackground;
#endregion
diff --git a/AngelLoader/Forms/CustomControls/DrawnPanel.cs b/AngelLoader/Forms/CustomControls/DrawnPanel.cs
index c1ab87829..a77259cc3 100644
--- a/AngelLoader/Forms/CustomControls/DrawnPanel.cs
+++ b/AngelLoader/Forms/CustomControls/DrawnPanel.cs
@@ -11,13 +11,10 @@ namespace AngelLoader.Forms.CustomControls
public sealed class DrawnPanel : Panel, IDarkable
{
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color DrawnBackColor { get; set; } = SystemColors.Control;
+
+ public Color DrawnBackColor = SystemColors.Control;
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public Color DarkModeDrawnBackColor { get; set; } = DarkColors.Fen_ControlBackground;
+ public Color DarkModeDrawnBackColor = DarkColors.Fen_ControlBackground;
[PublicAPI]
[Browsable(false)]
diff --git a/AngelLoader/Forms/CustomControls/ToolStripCustomControls.cs b/AngelLoader/Forms/CustomControls/ToolStripCustomControls.cs
index 82ac45a5d..6db33adc7 100644
--- a/AngelLoader/Forms/CustomControls/ToolStripCustomControls.cs
+++ b/AngelLoader/Forms/CustomControls/ToolStripCustomControls.cs
@@ -106,9 +106,7 @@ public class ToolStripMenuItemCustom : ToolStripMenuItem
/// If this component represents a game in some way, you can set its here.
///
[PublicAPI]
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public GameSupport.GameIndex GameIndex { get; set; } = GameSupport.GameIndex.Thief1;
+ public GameSupport.GameIndex GameIndex = GameSupport.GameIndex.Thief1;
public ToolStripMenuItemCustom() { }