Removed now unused ThemeUtil class

This commit is contained in:
Travis Nickles 2018-05-26 02:57:58 -05:00
parent b7b674d4e3
commit f5ce078488

View File

@ -101,7 +101,6 @@ namespace DS4Windows
Global.SetCulture(UseLang);
InitializeComponent();
//ThemeUtil.SetTheme(lvDebug);
bnEditC1.Tag = 0;
bnEditC2.Tag = 1;
@ -2522,28 +2521,4 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
FlashWhenLateAt = (int)Math.Round(nUDLatency.Value);
}
}
public class ThemeUtil
{
[DllImport("UxTheme", CharSet = CharSet.Unicode, ExactSpelling = true)]
private static extern int SetWindowTheme(IntPtr hWnd, String appName, String partList);
public static void SetTheme(ListView lv)
{
try
{
SetWindowTheme(lv.Handle, "Explorer", null);
}
catch { }
}
public static void SetTheme(TreeView tv)
{
try
{
SetWindowTheme(tv.Handle, "Explorer", null);
}
catch { }
}
}
}