diff --git a/Icon/Function/360.ico b/Icon/Function/360.ico new file mode 100644 index 0000000..0a15131 Binary files /dev/null and b/Icon/Function/360.ico differ diff --git a/Icon/Function/bilibili.ico b/Icon/Function/bilibili.ico new file mode 100644 index 0000000..628ecb4 Binary files /dev/null and b/Icon/Function/bilibili.ico differ diff --git a/Icon/Function/dialog-error.svg b/Icon/Function/dialog-error.svg new file mode 100644 index 0000000..998f48a --- /dev/null +++ b/Icon/Function/dialog-error.svg @@ -0,0 +1,15 @@ + + + + dialog-error + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/dialog-ok.svg b/Icon/Function/dialog-ok.svg new file mode 100644 index 0000000..970e68c --- /dev/null +++ b/Icon/Function/dialog-ok.svg @@ -0,0 +1,14 @@ + + + + dialog-ok + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/dialog-question.svg b/Icon/Function/dialog-question.svg new file mode 100644 index 0000000..611355c --- /dev/null +++ b/Icon/Function/dialog-question.svg @@ -0,0 +1,15 @@ + + + + dialog-question + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/dialog-warning.svg b/Icon/Function/dialog-warning.svg new file mode 100644 index 0000000..1bf157d --- /dev/null +++ b/Icon/Function/dialog-warning.svg @@ -0,0 +1,15 @@ + + + + dialog-warning + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/file-manager.svg b/Icon/Function/file-manager.svg new file mode 100644 index 0000000..9f3c7ad --- /dev/null +++ b/Icon/Function/file-manager.svg @@ -0,0 +1,24 @@ + + + + 文件管理器-256px + Created with Sketch. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/font-installer.svg b/Icon/Function/font-installer.svg new file mode 100644 index 0000000..8cb603a --- /dev/null +++ b/Icon/Function/font-installer.svg @@ -0,0 +1,49 @@ + + + + deepin-font-installer + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/gitee.ico b/Icon/Function/gitee.ico new file mode 100644 index 0000000..74846e7 Binary files /dev/null and b/Icon/Function/gitee.ico differ diff --git a/Icon/Function/github-fluidicon.png b/Icon/Function/github-fluidicon.png new file mode 100644 index 0000000..468574c Binary files /dev/null and b/Icon/Function/github-fluidicon.png differ diff --git a/Icon/Function/gitlab.png b/Icon/Function/gitlab.png new file mode 100644 index 0000000..a41472c Binary files /dev/null and b/Icon/Function/gitlab.png differ diff --git a/Icon/Function/logo_bdsys.png b/Icon/Function/logo_bdsys.png new file mode 100644 index 0000000..bfaa935 Binary files /dev/null and b/Icon/Function/logo_bdsys.png differ diff --git a/Icon/Function/preferences-system.svg b/Icon/Function/preferences-system.svg new file mode 100644 index 0000000..052257f --- /dev/null +++ b/Icon/Function/preferences-system.svg @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Icon/Function/sourceforge.png b/Icon/Function/sourceforge.png new file mode 100644 index 0000000..33ebf27 Binary files /dev/null and b/Icon/Function/sourceforge.png differ diff --git a/Icon/Function/system-monitor.svg b/Icon/Function/system-monitor.svg new file mode 100644 index 0000000..1045fed --- /dev/null +++ b/Icon/Function/system-monitor.svg @@ -0,0 +1,77 @@ + + + + deepin-system-monitor + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/threatbook.png b/Icon/Function/threatbook.png new file mode 100644 index 0000000..7e54724 Binary files /dev/null and b/Icon/Function/threatbook.png differ diff --git a/Icon/Function/user-trash-full.svg b/Icon/Function/user-trash-full.svg new file mode 100644 index 0000000..45e355b --- /dev/null +++ b/Icon/Function/user-trash-full.svg @@ -0,0 +1,21 @@ + + + + user-trash-full + Created with Sketch. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icon/Function/virtualbox.svg b/Icon/Function/virtualbox.svg new file mode 100644 index 0000000..b89c028 --- /dev/null +++ b/Icon/Function/virtualbox.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Icon/Function/virustotal.svg b/Icon/Function/virustotal.svg new file mode 100644 index 0000000..699bc93 --- /dev/null +++ b/Icon/Function/virustotal.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/mainwindow.py b/mainwindow.py index 12a07fe..5a7c5d0 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -2837,8 +2837,8 @@ enabledAll = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "强制启 setMiniFont = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "临时设置小字体")) setTinyFont = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "临时设置很小的字体")) setDefaultFont = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "临时设置默认字体")) -p3 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), QtCore.QCoreApplication.translate("U", "清空软件历史记录(&C)")) -cleanCache = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(47), QtCore.QCoreApplication.translate("U", "清空软件缓存")) +p3 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/user-trash-full.svg"), QtCore.QCoreApplication.translate("U", "清空软件历史记录(&C)")) +cleanCache = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/user-trash-full.svg"), QtCore.QCoreApplication.translate("U", "清空软件缓存")) p4 = QtWidgets.QAction(QtGui.QIcon.fromTheme("exit"), QtCore.QCoreApplication.translate("U", "退出程序(&E)")) programmenu.addAction(p1) programmenu.addAction(installWineHQ) @@ -2886,11 +2886,11 @@ cleanCache.triggered.connect(CleanProgramCache) p4.triggered.connect(window.close) wineOption = menu.addMenu(QtCore.QCoreApplication.translate("U", "Wine(&W)")) -w1 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "打开 Wine 容器目录")) -w2 = QtWidgets.QAction(QtGui.QIcon.fromTheme("font"), QtCore.QCoreApplication.translate("U", "安装常见字体")) -w3 = QtWidgets.QAction(QtGui.QIcon.fromTheme("font"), QtCore.QCoreApplication.translate("U", "安装自定义字体")) -w4 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "删除选择的 Wine 容器")) -cleanBottonUOS = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "清理 Wine 容器(基于 Wine 适配活动脚本)")) +w1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/file-manager.svg"), QtCore.QCoreApplication.translate("U", "打开 Wine 容器目录")) +w2 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/font-installer.svg"), QtCore.QCoreApplication.translate("U", "安装常见字体")) +w3 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/font-installer.svg"), QtCore.QCoreApplication.translate("U", "安装自定义字体")) +w4 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/user-trash-full.svg"), QtCore.QCoreApplication.translate("U", "删除选择的 Wine 容器")) +cleanBottonUOS = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/user-trash-full.svg"), QtCore.QCoreApplication.translate("U", "清理 Wine 容器(基于 Wine 适配活动脚本)")) wineKeyboardLnk = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "Wine 快捷键映射")) w5 = QtWidgets.QAction(QtGui.QIcon.fromTheme("deb"), QtCore.QCoreApplication.translate("U", "打包 wine 应用(专业用户使用)")) w6 = QtWidgets.QAction(QtGui.QIcon.fromTheme("deb"), QtCore.QCoreApplication.translate("U", "使用官方 Wine 适配活动的脚本进行打包")) @@ -2936,11 +2936,11 @@ wm1.addAction(wm1_5) wm1.addAction(wm1_7) wm1.addAction(wm1_6) wm2 = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "在指定 Wine、容器运行基础应用")) -wm2_1 = QtWidgets.QAction(QtGui.QIcon.fromTheme("control-center2"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的控制面板")) +wm2_1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的控制面板")) wm2_2 = QtWidgets.QAction(QtGui.QIcon.fromTheme("web-browser"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的浏览器")) wm2_3 = QtWidgets.QAction(QtGui.QIcon.fromTheme("regedit"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的注册表")) -wm2_4 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的任务管理器")) -wm2_5 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的资源管理器")) +wm2_4 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/system-monitor.svg"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的任务管理器")) +wm2_5 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/file-manager.svg"), QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的资源管理器")) wm2_6 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "打开指定wine、指定容器的关于 wine")) wm2.addAction(wm2_1) wm2.addAction(wm2_2) @@ -2949,9 +2949,9 @@ wm2.addAction(wm2_4) wm2.addAction(wm2_5) wm2.addAction(wm2_6) wineOption.addSeparator() -settingRunV3Sh = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "run_v3.sh 管理")) -w8 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "设置 run_v3.sh 的文管为 Deepin 默认文管")) -w9 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "设置 run_v3.sh 的文管为 Wine 默认文管")) +settingRunV3Sh = wineOption.addMenu(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "run_v3.sh 管理")) +w8 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "设置 run_v3.sh 的文管为 Deepin 默认文管")) +w9 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "设置 run_v3.sh 的文管为 Wine 默认文管")) w10 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "重新安装 deepin-wine-helper")) w11 = QtWidgets.QAction(QtGui.QIcon.fromTheme("winetricks"), QtCore.QCoreApplication.translate("U", "使用winetricks打开指定容器")) w11WithWineLib = QtWidgets.QAction(QtGui.QIcon.fromTheme("winetricks"), QtCore.QCoreApplication.translate("U", "使用winetricks打开指定容器(使用Wine运行器运行库)")) @@ -2973,52 +2973,52 @@ optionCheckDemo.addAction(netIEDemo) wineOption.addSeparator() wm3 = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "启用/禁用功能")) ed1 = wm3.addMenu(QtCore.QCoreApplication.translate("U", "启用/禁用 opengl")) -wm3_1 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "开启 opengl")) -wm3_2 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "禁用 opengl")) +wm3_1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "开启 opengl")) +wm3_2 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "禁用 opengl")) ed1.addAction(wm3_1) ed1.addAction(wm3_2) ed2 = wm3.addMenu(QtCore.QCoreApplication.translate("U", "安装/卸载 winbind")) -wm4_1 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "安装 winbind")) -wm4_2 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "卸载 winbind")) +wm4_1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "安装 winbind")) +wm4_2 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "卸载 winbind")) ed2.addAction(wm4_1) ed2.addAction(wm4_2) dxvkMenu = wm3.addMenu(QtCore.QCoreApplication.translate("U", "安装/卸载 DXVK")) -installDxvk = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "安装 DXVK")) -uninstallDxvk = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "卸载 DXVK")) +installDxvk = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "安装 DXVK")) +uninstallDxvk = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-er r o r.svg"), QtCore.QCoreApplication.translate("U", "卸载 DXVK")) dxvkMenu.addAction(installDxvk) dxvkMenu.addAction(uninstallDxvk) vkd3dMenu = wm3.addMenu(QtCore.QCoreApplication.translate("U", "安装/卸载 Vkd3d")) -installvkd3d = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "安装 Vkd3d")) -uninstallvkd3d = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "卸载 Vkd3d")) +installvkd3d = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "安装 Vkd3d")) +uninstallvkd3d = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "卸载 Vkd3d")) vkd3dMenu.addAction(installvkd3d) vkd3dMenu.addAction(uninstallvkd3d) wineOption.addSeparator() wineOption.addAction(deleteDesktopIcon) wineOption.addSeparator() settingWineBottleCreateLink = wm3.addMenu(QtCore.QCoreApplication.translate("U", "启用/禁止指定 wine 容器生成快捷方式")) -enabledWineBottleCreateLink = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "允许指定 wine 容器生成快捷方式")) -disbledWineBottleCreateLink = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "禁止指定 wine 容器生成快捷方式")) +enabledWineBottleCreateLink = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "允许指定 wine 容器生成快捷方式")) +disbledWineBottleCreateLink = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "禁止指定 wine 容器生成快捷方式")) settingWineBottleCreateLink.addAction(enabledWineBottleCreateLink) settingWineBottleCreateLink.addAction(disbledWineBottleCreateLink) settingWineCrashDialog = wm3.addMenu(QtCore.QCoreApplication.translate("U", "启用/禁用指定 wine 容器崩溃提示窗口")) -disbledWineCrashDialog = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "禁用指定 wine 容器崩溃提示窗口")) -enabledWineCrashDialog = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "启用指定 wine 容器崩溃提示窗口")) +disbledWineCrashDialog = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "禁用指定 wine 容器崩溃提示窗口")) +enabledWineCrashDialog = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "启用指定 wine 容器崩溃提示窗口")) settingWineCrashDialog.addAction(enabledWineCrashDialog) settingWineCrashDialog.addAction(disbledWineCrashDialog) settingOpenProgram = wm3.addMenu(QtCore.QCoreApplication.translate("U", "启用/禁止指定 wine 容器创建文件关联")) -enabledOpenProgram = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(45), QtCore.QCoreApplication.translate("U", "允许指定 wine 容器创建文件关联")) -disbledOpenProgram = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "禁止指定 wine 容器创建文件关联")) +enabledOpenProgram = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-ok.svg"), QtCore.QCoreApplication.translate("U", "允许指定 wine 容器创建文件关联")) +disbledOpenProgram = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "禁止指定 wine 容器创建文件关联")) settingOpenProgram.addAction(enabledOpenProgram) settingOpenProgram.addAction(disbledOpenProgram) -settingHttpProxy = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "设置指定 Wine 容器代理")) -enabledHttpProxy = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "设置指定 wine 容器的代理")) -disbledHttpProxy = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(40), QtCore.QCoreApplication.translate("U", "禁用指定 wine 容器的代理")) +settingHttpProxy = wineOption.addMenu(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "设置指定 Wine 容器代理")) +enabledHttpProxy = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "设置指定 wine 容器的代理")) +disbledHttpProxy = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/dialog-error.svg"), QtCore.QCoreApplication.translate("U", "禁用指定 wine 容器的代理")) settingHttpProxy.addAction(enabledHttpProxy) settingHttpProxy.addAction(disbledHttpProxy) dllOver = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "函数顶替库列表")) saveDllOver = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(43), QtCore.QCoreApplication.translate("U", "导出函数顶替列表")) addDllOver = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(32), QtCore.QCoreApplication.translate("U", "导入函数顶替列表")) -editDllOver = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "编辑函数顶替库列表")) +editDllOver = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/preferences-system.svg"), QtCore.QCoreApplication.translate("U", "编辑函数顶替库列表")) dllOver.addAction(saveDllOver) dllOver.addAction(addDllOver) dllOver.addAction(editDllOver) @@ -3079,7 +3079,7 @@ netDemo.triggered.connect(lambda: RunWineProgram(f"{programPath}/Test/net.exe")) netIEDemo.triggered.connect(lambda: RunWineProgram(f"{programPath}/Test/netandie.exe")) virtualMachine = menu.addMenu(QtCore.QCoreApplication.translate("U", "虚拟机(&V)")) -v1 = QtWidgets.QAction(QtGui.QIcon.fromTheme("virtualbox"), QtCore.QCoreApplication.translate("U", "使用虚拟机运行 Windows 应用")) +v1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/virtualbox.svg"), QtCore.QCoreApplication.translate("U", "使用虚拟机运行 Windows 应用")) virtualMachine.addAction(v1) v1.triggered.connect(RunVM) @@ -3102,10 +3102,10 @@ checkValue.addAction(sha512Value) safeWebsize = menu.addMenu(QtCore.QCoreApplication.translate("U", "云沙箱(&C)")) -s1 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "360 沙箱云")) -s2 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "微步云沙箱")) -s3 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "VIRUSTOTAL")) -s4 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "计算机病毒防御技术国家工程实验室")) +s1 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/360.ico"), QtCore.QCoreApplication.translate("U", "360 沙箱云")) +s2 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/threatbook.png"), QtCore.QCoreApplication.translate("U", "微步云沙箱")) +s3 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/virustotal.svg"), QtCore.QCoreApplication.translate("U", "VIRUSTOTAL")) +s4 = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/logo_bdsys.png"), QtCore.QCoreApplication.translate("U", "计算机病毒防御技术国家工程实验室")) safeWebsize.addAction(s1) safeWebsize.addAction(s2) safeWebsize.addAction(s3) @@ -3145,7 +3145,7 @@ def AddLib(install: QtWidgets.QAction, uninstall, menu, info): menu.addAction(uninstall) installLib = menu.addMenu(QtCore.QCoreApplication.translate("U", "应用运行库(&R)")) -howtouseQemuUser = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "Qemu User 使用教程(配合运行库实现在非 X86 架构运行 X86 Wine)")) +howtouseQemuUser = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/bilibili.ico"), QtCore.QCoreApplication.translate("U", "Qemu User 使用教程(配合运行库实现在非 X86 架构运行 X86 Wine)")) howtouseQemuUser.triggered.connect(lambda: webbrowser.open_new_tab("https://www.bilibili.com/read/cv23185651")) runnerlibinfo = QtWidgets.QAction("只在运行器使用的运行库(不与其他运行库以及兼容层冲突)") installRunnerLib = QtWidgets.QAction("安装运行库") @@ -3234,7 +3234,7 @@ if len(qemuBottleList) >= 1: print(qemuBottleList) videoHelp = menu.addMenu(QtCore.QCoreApplication.translate("U", "视频教程(&V)")) -videoHelpAction = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "视频教程(Bilibili)")) +videoHelpAction = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/bilibili.ico"), QtCore.QCoreApplication.translate("U", "视频教程(Bilibili)")) videoHelpActionYoutube = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "视频教程(Youtube)")) videoHelpAction.triggered.connect(lambda: webbrowser.open_new_tab("https://space.bilibili.com/695814694/channel/collectiondetail?sid=1610353")) videoHelpActionYoutube.triggered.connect(lambda: webbrowser.open_new_tab("https://www.youtube.com/watch?v=qDaPBiIdGAs&list=PLoXD11L1NQAx8A1Qskgu3tUoi0nHKJcmg")) @@ -3255,10 +3255,10 @@ h6 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "反馈这个程 h7 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "关于这个程序")) h8 = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), QtCore.QCoreApplication.translate("U", "关于 Qt")) gfdgdxiio = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "作者个人站")) -gitee = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "Gitee")) -github = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "Github")) -gitlab = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "Gitlab")) -jihu = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(20), QtCore.QCoreApplication.translate("U", "Sourceforge")) +gitee = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/gitee.png"), QtCore.QCoreApplication.translate("U", "Gitee")) +github = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/github-fluidicon.png"), QtCore.QCoreApplication.translate("U", "Github")) +gitlab = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/gitlab.png"), QtCore.QCoreApplication.translate("U", "Gitlab")) +jihu = QtWidgets.QAction(QtGui.QIcon(f"{programPath}/Icon/Function/sourceforge.png"), QtCore.QCoreApplication.translate("U", "Sourceforge")) h1.addAction(gfdgdxiio) h1.addAction(gitee) h1.addAction(github)