Update format

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-12-24 18:35:26 +08:00
parent 440919b4cb
commit 812e90d79b
2 changed files with 11 additions and 9 deletions
+8 -8
View File
@@ -61,10 +61,10 @@ class ConfigurationXrayProxyOutboundObjectV(dict):
else:
networkKey = f'{type_}Settings'
networkObjectArgs[
networkKey
] = ConfigurationXray.kwargs2ProxyStreamSettingsNetworkObject(
type_, remote_host, kwargs
networkObjectArgs[networkKey] = (
ConfigurationXray.kwargs2ProxyStreamSettingsNetworkObject(
type_, remote_host, kwargs
)
)
if security:
@@ -147,10 +147,10 @@ class ConfigurationXrayProxyOutboundObjectTrojan(dict):
else:
networkKey = f'{type_}Settings'
networkObjectArgs[
networkKey
] = ConfigurationXray.kwargs2ProxyStreamSettingsNetworkObject(
type_, address, kwargs
networkObjectArgs[networkKey] = (
ConfigurationXray.kwargs2ProxyStreamSettingsNetworkObject(
type_, address, kwargs
)
)
if security:
+3 -1
View File
@@ -135,7 +135,9 @@ class XrayAssetViewerQListWidget(SupportThemeChangedCallback, AppQListWidget):
if theme == 'Dark':
if PLATFORM == 'Windows':
# Windows
if versionToValue(PYSIDE6_VERSION) < versionToValue('6.7.0'):
if versionToValue(PYSIDE6_VERSION) < versionToValue(
'6.7.0'
):
# PySide6 < 6.7.0 has no system theme handling on Windows.
# Always use black icon
item.setIcon(bootstrapIcon('file-earmark.svg'))