mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Removed now unused ThemeUtil class
This commit is contained in:
parent
b7b674d4e3
commit
f5ce078488
@ -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 { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user