Move download history button

This commit is contained in:
Natsumi
2022-03-30 22:37:06 +13:00
parent 97761f81c1
commit bb5b58f21b
4 changed files with 22 additions and 4 deletions

View File

@@ -420,6 +420,11 @@ namespace VRCX
WinformThemer.SetGlobalTheme(value);
}
public void DoFunny()
{
WinformThemer.DoFunny();
}
public void SetStartup(bool enabled)
{
try

View File

@@ -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);
}
}
}
}

View File

@@ -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) => {

View File

@@ -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