更新banner

This commit is contained in:
2024-05-06 10:36:52 +08:00
parent 4e54c62c47
commit 5898087510
2 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 195 KiB

View File

@@ -105,14 +105,14 @@ AppInfoShowerRefresh()
if os.path.exists("/usr/share/gxde-resources/spark-dwine-helper.png"):
backgroundImgPath = "/usr/share/gxde-resources/spark-dwine-helper.png"
##########
if os.path.exists("/opt/durapps/spark-dwine-helper/pybanner/fallback.png"):
backgroundImgPath = "/opt/durapps/spark-dwine-helper/pybanner/fallback.png"
if os.path.exists(f"{programPath}/banner.png"):
backgroundImgPath = f"{programPath}/banner.png"
if os.path.exists(f"{programPath}/fallback.png"):
backgroundImgPath = f"{programPath}/fallback.png"
if os.path.exists(f"/opt/apps/{os.getenv('DEB_PACKAGE_NAME')}/files/banner.png"):
backgroundImgPath = f"/opt/apps/{os.getenv('DEB_PACKAGE_NAME')}/files/banner.png"
window.setWindowTitle("星火Windows应用兼容助手")
layout.addWidget(QLabel(f""), 1, 0)
layout.addWidget(appInfoShower, 2, 0)
layout.addWidget(QLabel(f"<hr>由 Wine 运行器驱动"), 4, 0)
layout.addWidget(QLabel(f"<hr>由 Wine 运行器提供支持"), 4, 0)
widget.setLayout(layout)
window.setCentralWidget(widget)
window.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowStaysOnTopHint)