mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-21 23:54:26 +08:00
[✨ Feat / 🛠️ Fix] Auto hide desktopAssistant & Fix #26
1. [/] 修改了 Header Icon 的隐藏方式, 尝试修复 #26 2. [+] 现在可以隐藏管家助手 (桌面右下角小窗) 了 3. [⇡] Bump version to v0.1.1-beta
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
const uxAndAppearanceSettings = [
|
||||
{
|
||||
id: 0,
|
||||
categoryName: "管家助手",
|
||||
child: [
|
||||
{
|
||||
index: 0,
|
||||
id: "autoHideEasiAssistant",
|
||||
type: "switch",
|
||||
name: "自动最小化管家助手",
|
||||
description: "管家启动后, 自动将桌面右下角管家助手最小化至 Fab 形态",
|
||||
restart: true,
|
||||
reload: false,
|
||||
associateVal: ["ssa.ux.easiAssistant.notDisplay"],
|
||||
auraIf: () => true,
|
||||
defaultValue: false,
|
||||
auraDisable: () => {
|
||||
if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.notDisplay) {
|
||||
return { value: true, tooltip: '禁用 "隐藏管家助手" 以继续' };
|
||||
} else {
|
||||
return { value: false };
|
||||
}
|
||||
},
|
||||
valueGetter: () => {
|
||||
return global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.autoHide;
|
||||
},
|
||||
callbackFn: (newVal) => {
|
||||
if (typeof newVal !== "boolean") return;
|
||||
global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.autoHide = newVal;
|
||||
},
|
||||
},
|
||||
{
|
||||
index: 1,
|
||||
id: "notDisplayEasiAssistant",
|
||||
type: "switch",
|
||||
name: "隐藏管家助手",
|
||||
description: "管家启动后, 管家助手窗口将不再显示",
|
||||
restart: true,
|
||||
reload: false,
|
||||
associateVal: ["ssa.ux.easiAssistant.autoHide"],
|
||||
auraIf: () => true,
|
||||
defaultValue: false,
|
||||
auraDisable: () => {
|
||||
if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.autoHide) {
|
||||
return { value: true, tooltip: '禁用 "自动最小化管家助手" 以继续' };
|
||||
} else {
|
||||
return { value: false };
|
||||
}
|
||||
},
|
||||
valueGetter: () => {
|
||||
return global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.notDisplay;
|
||||
},
|
||||
callbackFn: (newVal) => {
|
||||
if (typeof newVal !== "boolean") return;
|
||||
global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.notDisplay = newVal;
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
module.exports = { uxAndAppearanceSettings };
|
||||
Reference in New Issue
Block a user