diff --git a/Icon/Function/CHROOT.png b/Icon/Function/CHROOT.png old mode 100644 new mode 100755 index ea5e37f..4873b80 Binary files a/Icon/Function/CHROOT.png and b/Icon/Function/CHROOT.png differ diff --git a/Icon/Function/more-wine.png b/Icon/Function/more-wine.png old mode 100644 new mode 100755 index 8f7bd22..e4d1a93 Binary files a/Icon/Function/more-wine.png and b/Icon/Function/more-wine.png differ diff --git a/Icon/Function/wine.png b/Icon/Function/wine.png old mode 100644 new mode 100755 index f6e14e3..c1d36ea Binary files a/Icon/Function/wine.png and b/Icon/Function/wine.png differ diff --git a/Icon/Function/wine23A.png b/Icon/Function/wine23A.png old mode 100644 new mode 100755 index 4d1fdd3..e75350d Binary files a/Icon/Function/wine23A.png and b/Icon/Function/wine23A.png differ diff --git a/Icon/Function/wine23P.png b/Icon/Function/wine23P.png old mode 100644 new mode 100755 index 9471d3f..dcc9ab9 Binary files a/Icon/Function/wine23P.png and b/Icon/Function/wine23P.png differ diff --git a/mainwindow.py b/mainwindow.py index 7aab8c2..750cc03 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -2492,7 +2492,7 @@ getLoseDll = QtWidgets.QPushButton(transla.transe("U", "检测静态下程序缺 getLoseDll.clicked.connect(GetLoseDll) programManager.addWidget(QtWidgets.QLabel(" "*5), 1, 9, 1, 1) programManager.addWidget(getLoseDll, 1, 10, 1, 1) -programManager.addItem(QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum), 1, 9, 1, 1) +programManager.addItem(QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum), 1, 11, 1, 1) programManager.addWidget(QtWidgets.QLabel(transla.transe("U", "WINE配置:")), 2, 0, 1, 1) wineConfig = QtWidgets.QPushButton(transla.transe("U", "配置容器")) wineConfig.clicked.connect(lambda: RunWineProgram("winecfg")) @@ -2554,12 +2554,12 @@ mainLayout.addWidget(programRun, 2, 1, 1, 1) # 菜单栏 menu = window.menuBar() programmenu = menu.addMenu(transla.transe("U", "程序(&P)")) -p1 = QtWidgets.QAction(transla.transe("U", "安装 wine(&I)")) -installWineOnDeepin23 = QtWidgets.QAction(transla.transe("U", "安装 wine(只限Deepin23 Preview)")) -installWineOnDeepin23Alpha = QtWidgets.QAction(transla.transe("U", "安装 wine(只限Deepin23 Alpha)")) -installWineHQ = QtWidgets.QAction(transla.transe("U", "安装 WineHQ")) -installMoreWine = QtWidgets.QAction(transla.transe("U", "安装更多 Wine")) -downloadChrootBottle = QtWidgets.QAction(transla.transe("U", "下载 Chroot 容器")) +p1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine.png"), transla.transe("U", "安装 wine(&I)")) +installWineOnDeepin23 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine23P.png"), transla.transe("U", "安装 wine(只限Deepin23 Preview)")) +installWineOnDeepin23Alpha = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine23A.png"), transla.transe("U", "安装 wine(只限Deepin23 Alpha)")) +installWineHQ = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/wine.png"), transla.transe("U", "安装 WineHQ")) +installMoreWine = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/more-wine.png"), transla.transe("U", "安装更多 Wine")) +downloadChrootBottle = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/CHROOT.png"), transla.transe("U", "下载 Chroot 容器")) p2 = QtWidgets.QAction(transla.transe("U", "设置程序(&S)")) p3 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件历史记录(&C)")) cleanCache = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), transla.transe("U", "清空软件缓存")) @@ -2832,7 +2832,7 @@ unpackDeb = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(32), t qemuMenu.addAction(unpackDeb) unpackDeb.triggered.connect(UnPackage) if len(qemuBottleList) >= 1: - configMenu = QtWidgets.QAction(transla.transe("U", "配置指定 Chroot 容器")) + configMenu = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/CHROOT.png"), transla.transe("U", "配置指定 Chroot 容器")) qemuMenu.addAction(configMenu) configMenu.triggered.connect(ConfigQemu) print(qemuBottleList)