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