From f5ce07848895dab3f2fffad06031ffd956c57cc6 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 26 May 2018 02:57:58 -0500 Subject: [PATCH] Removed now unused ThemeUtil class --- DS4Windows/DS4Forms/DS4Form.cs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 6b01b0f..faa0757 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -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 { } - } - } }