aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Tools/ControlManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-28 14:40:42 -0400
committerMichael <[email protected]>2017-05-28 14:40:42 -0400
commit9914c18456a0c08019e778479ce727ac937b1e57 (patch)
tree30501777916b27e763aac3b901b0e4d7e22170cc /ShiftOS.WinForms/Tools/ControlManager.cs
parent6123e06842ec9eea60bd2d73588ac6c545d0ea99 (diff)
downloadshiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.tar.gz
shiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.tar.bz2
shiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.zip
Fuck
Diffstat (limited to 'ShiftOS.WinForms/Tools/ControlManager.cs')
-rw-r--r--ShiftOS.WinForms/Tools/ControlManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Tools/ControlManager.cs b/ShiftOS.WinForms/Tools/ControlManager.cs
index fe77884..92482fa 100644
--- a/ShiftOS.WinForms/Tools/ControlManager.cs
+++ b/ShiftOS.WinForms/Tools/ControlManager.cs
@@ -207,19 +207,19 @@ namespace ShiftOS.WinForms.Tools
if (ctrl is Button)
{
Button b = ctrl as Button;
- if (!b.Tag.ToString().ToLower().Contains("keepbg"))
+ if (!tag.Contains("keepbg"))
{
b.BackColor = SkinEngine.LoadedSkin.ButtonBackgroundColor;
b.BackgroundImage = SkinEngine.GetImage("buttonidle");
b.BackgroundImageLayout = SkinEngine.GetImageLayout("buttonidle");
}
b.FlatAppearance.BorderSize = SkinEngine.LoadedSkin.ButtonBorderWidth;
- if (!b.Tag.ToString().ToLower().Contains("keepfg"))
+ if (!tag.Contains("keepfg"))
{
b.FlatAppearance.BorderColor = SkinEngine.LoadedSkin.ButtonForegroundColor;
b.ForeColor = SkinEngine.LoadedSkin.ButtonForegroundColor;
}
- if (!b.Tag.ToString().ToLower().Contains("keepfont"))
+ if (!tag.Contains("keepfont"))
b.Font = SkinEngine.LoadedSkin.ButtonTextFont;
Color orig_bg = b.BackColor;