mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
fix style
This commit is contained in:
parent
72c1acdfd2
commit
14075c6b9b
@ -196,31 +196,34 @@ const GeneralConfig: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
<SettingItem title="根据网速旋转悬浮窗图标" divider>
|
||||
<Switch
|
||||
size="sm"
|
||||
isSelected={spinFloatingIcon}
|
||||
onValueChange={async (v) => {
|
||||
await patchAppConfig({ spinFloatingIcon: v })
|
||||
window.electron.ipcRenderer.send('updateFloatingWindow')
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
{showFloating && (
|
||||
<SettingItem title="禁用托盘图标" divider>
|
||||
<Switch
|
||||
size="sm"
|
||||
isSelected={disableTray}
|
||||
onValueChange={async (v) => {
|
||||
await patchAppConfig({ disableTray: v })
|
||||
if (v) {
|
||||
closeTrayIcon()
|
||||
} else {
|
||||
showTrayIcon()
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
<>
|
||||
<SettingItem title="根据网速旋转悬浮窗图标" divider>
|
||||
<Switch
|
||||
size="sm"
|
||||
isSelected={spinFloatingIcon}
|
||||
onValueChange={async (v) => {
|
||||
await patchAppConfig({ spinFloatingIcon: v })
|
||||
window.electron.ipcRenderer.send('updateFloatingWindow')
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
<SettingItem title="禁用托盘图标" divider>
|
||||
<Switch
|
||||
size="sm"
|
||||
isSelected={disableTray}
|
||||
onValueChange={async (v) => {
|
||||
await patchAppConfig({ disableTray: v })
|
||||
if (v) {
|
||||
closeTrayIcon()
|
||||
} else {
|
||||
showTrayIcon()
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
</>
|
||||
)}
|
||||
{platform !== 'linux' && (
|
||||
<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user