diff --git a/AppApi.cs b/AppApi.cs index 2dc14060..b0926057 100644 --- a/AppApi.cs +++ b/AppApi.cs @@ -420,6 +420,11 @@ namespace VRCX WinformThemer.SetGlobalTheme(value); } + public void DoFunny() + { + WinformThemer.DoFunny(); + } + public void SetStartup(bool enabled) { try diff --git a/WinformThemer.cs b/WinformThemer.cs index 057908d7..73b326f0 100644 --- a/WinformThemer.cs +++ b/WinformThemer.cs @@ -105,6 +105,18 @@ namespace VRCX [DllImport("DwmApi")] internal static extern int DwmGetWindowAttribute(IntPtr hwnd, int dwAttribute, IntPtr pvAttribute, int cbAttribute); + + [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] + internal static extern int SetWindowLong(IntPtr hwnd, int index, int newStyle); + } + + public static void DoFunny() + { + foreach (Form form in Application.OpenForms) + { + PInvoke.SetWindowLong(form.Handle, -20, 0x00C00000); + // PInvoke.SetWindowLong(form.Handle, -20, 0x00050100); + } } } } diff --git a/html/src/app.js b/html/src/app.js index e982b276..c79d8e50 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -11417,6 +11417,10 @@ speechSynthesis.getVoices(); } else { AppApi.ChangeTheme(0); } + var dateObj = new Date(); + if (dateObj.getMonth() === 3 && dateObj.getDate() === 1) { + AppApi.DoFunny(); + } window .matchMedia('(prefers-color-scheme: dark)') .addEventListener('change', (e) => { diff --git a/html/src/index.pug b/html/src/index.pug index b9ab9d02..c103e6e5 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -1126,10 +1126,6 @@ html el-dropdown-item(v-if="voice" v-for="(voice, index) in TTSvoices" :key="index" v-text="voice.name" :command="index") div.options-container span.header VRChat Cache Management - br - div.options-container-item - el-button(size="small" icon="el-icon-download" @click="showDownloadDialog") Download History - br span.sub-header Automatically Manage Cache When Closing VRChat div.options-container-item span.name(style="min-width:300px") Auto delete old versions from cache @@ -1218,6 +1214,7 @@ html el-button(size="small" icon="el-icon-delete-solid" @click="clearVRCXCache") Clear Cache el-button(size="small" icon="el-icon-time" @click="promptAutoClearVRCXCacheFrequency") Auto Clear Cache div.options-container-item + el-button(size="small" icon="el-icon-download" @click="showDownloadDialog") Download History el-button(size="small" icon="el-icon-tickets" @click="showConsole") Show Console div.options-container span.sub-header SQLite Table Size