fix: 增加图标

This commit is contained in:
Julian Freeman
2024-07-20 20:39:20 -04:00
parent d05e3dba49
commit b54b479ebc
7 changed files with 7908 additions and 5 deletions

3
.gitignore vendored
View File

@@ -25,6 +25,9 @@ share/python-wheels/
.installed.cfg .installed.cfg
*.egg *.egg
MANIFEST MANIFEST
*.build/
*.dist/
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # Usually these files are written by a python script from a template

BIN
asset/kps-unifier.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
kps-unifier.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

@@ -1,5 +1,6 @@
<RCC> <RCC>
<qresource prefix="/"> <qresource prefix="/">
<file>asset/kps-unifier.png</file>
<file>asset/img/ellipsis.svg</file> <file>asset/img/ellipsis.svg</file>
<file>asset/img/eye.svg</file> <file>asset/img/eye.svg</file>
<file>asset/img/eye-off.svg</file> <file>asset/img/eye-off.svg</file>

View File

@@ -24,6 +24,8 @@ class UiKpsUnifier(object):
window: QtWidgets.QMainWindow window: QtWidgets.QMainWindow
): ):
window.setWindowTitle('KeePassXC 多合一') window.setWindowTitle('KeePassXC 多合一')
window.setWindowIcon(QtGui.QIcon(":/asset/kps-unifier.png"))
self.cw = QtWidgets.QWidget(window) self.cw = QtWidgets.QWidget(window)
self.vly_m = QtWidgets.QVBoxLayout() self.vly_m = QtWidgets.QVBoxLayout()
self.cw.setLayout(self.vly_m) self.cw.setLayout(self.vly_m)

View File

@@ -110,6 +110,8 @@ class UiPageQuery(object):
self.vly_sa_wg.addWidget(self.pbn_all) self.vly_sa_wg.addWidget(self.pbn_all)
self.pbn_deleted = QtWidgets.QPushButton("已删除", self.sa_wg) self.pbn_deleted = QtWidgets.QPushButton("已删除", self.sa_wg)
# 暂时先隐藏
self.pbn_deleted.setVisible(False)
self.pbn_deleted.setMinimumWidth(config["button_min_width"]) self.pbn_deleted.setMinimumWidth(config["button_min_width"])
self.vly_sa_wg.addWidget(self.pbn_deleted) self.vly_sa_wg.addWidget(self.pbn_deleted)

File diff suppressed because it is too large Load Diff