Moved PInvoke stuff to seperate class, Added jank force refresh of window on theme change

This commit is contained in:
Usman Shafiq
2022-03-23 22:12:35 -04:00
parent c9bd9cd9d3
commit 8b66fd5825
7 changed files with 303 additions and 18 deletions

View File

@@ -169,5 +169,15 @@ namespace VRCX
{
Application.Exit();
}
private void button1_Click(object sender, EventArgs e)
{
WinformThemer.SetGlobalTheme(1);
}
private void button2_Click(object sender, EventArgs e)
{
WinformThemer.SetGlobalTheme(0);
}
}
}