feat: tray window

This commit is contained in:
lencx
2022-12-10 22:25:29 +08:00
parent 8339dc281c
commit 9478211397
11 changed files with 59 additions and 15 deletions

View File

@@ -40,6 +40,12 @@ window.invoke = invoke;
window.transformCallback = transformCallback;
async function init() {
if (__TAURI_METADATA__.__currentWindow.label === 'mini') {
document.getElementsByTagName('html')[0].style['font-size'] = '70%';
}
if (__TAURI_METADATA__.__currentWindow.label !== 'core') return;
async function platform() {
return invoke('platform', {
__tauriModule: 'Os',