mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-17 23:13:03 +08:00
refactor(gui): 统一资源路径前缀并更新新版 SVG Logo
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# AutoLibrary
|
# AutoLibrary
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://github.com/KenanZhu/AutoLibrary)
|
[](https://github.com/KenanZhu/AutoLibrary)
|
||||||

|

|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ def main():
|
|||||||
|
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
translator = QTranslator()
|
translator = QTranslator()
|
||||||
if translator.load(":/res/trans/translators/qtbase_zh_CN.ts"):
|
if translator.load(":/res/translators/qtbase_zh_CN.ts"):
|
||||||
app.installTranslator(translator)
|
app.installTranslator(translator)
|
||||||
app.setStyle('Fusion')
|
app.setStyle('Fusion')
|
||||||
app.setApplicationName("AutoLibrary")
|
app.setApplicationName("AutoLibrary")
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class ALAboutDialog(QDialog, Ui_ALAboutDialog):
|
|||||||
self
|
self
|
||||||
):
|
):
|
||||||
|
|
||||||
self.LogoIconLabel.setPixmap(QIcon(":/res/icon/icons/AutoLibrary_Logo.svg").pixmap(48, 48))
|
self.LogoIconLabel.setPixmap(QIcon(":/res/icons/AutoLibrary_Logo_64.svg").pixmap(48, 48))
|
||||||
info_text = self.generateAboutText()
|
info_text = self.generateAboutText()
|
||||||
self.AboutInfoBrowser.setHtml(info_text)
|
self.AboutInfoBrowser.setHtml(info_text)
|
||||||
browser_font = self.AboutInfoBrowser.font()
|
browser_font = self.AboutInfoBrowser.font()
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class ALMainWindow(MsgBase, QMainWindow, Ui_ALMainWindow):
|
|||||||
self
|
self
|
||||||
):
|
):
|
||||||
|
|
||||||
self.icon = QIcon(":/res/icon/icons/AutoLibrary_Logo.svg")
|
self.icon = QIcon(":/res/icons/AutoLibrary_Logo_64.svg")
|
||||||
self.setWindowIcon(self.icon)
|
self.setWindowIcon(self.icon)
|
||||||
self.MessageIOTextEdit.setFont(QFont("Courier New", 10))
|
self.MessageIOTextEdit.setFont(QFont("Courier New", 10))
|
||||||
self.ManualAction.triggered.connect(self.onManualActionTriggered)
|
self.ManualAction.triggered.connect(self.onManualActionTriggered)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/res/icon">
|
<qresource prefix="/res">
|
||||||
<file>icons/AutoLibrary_Logo.svg</file>
|
<file>icons/AutoLibrary_Logo_64.svg</file>
|
||||||
</qresource>
|
<file>icons/AutoLibrary_Logo_128.svg</file>
|
||||||
<qresource prefix="/res/trans">
|
|
||||||
<file>translators/qtbase_zh_CN.qm</file>
|
<file>translators/qtbase_zh_CN.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 37 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 30 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user