mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Set icon through code (#676)
This commit is contained in:
parent
74eb279dfd
commit
1599f3adb0
3 changed files with 2 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -62,7 +62,7 @@ translations-to-qm: ## Compile .ts text files to binary .qm files.
|
|||
flatpak-install: translations-to-qm
|
||||
pip3 install --prefix=/app --no-deps .
|
||||
install -D ${FLATPAK_XML} /app/share/metainfo/com.borgbase.Vorta.appdata.xml
|
||||
install -D package/icon.svg /app/share/icons/hicolor/scalable/apps/com.borgbase.Vorta.svg
|
||||
install -D src/vorta/assets/icons/icon.svg /app/share/icons/hicolor/scalable/apps/com.borgbase.Vorta.svg
|
||||
install -D package/icon-symbolic.svg /app/share/icons/hicolor/symbolic/apps/com.borgbase.Vorta-symbolic.svg
|
||||
install -D src/vorta/assets/metadata/com.borgbase.Vorta.desktop /app/share/applications/com.borgbase.Vorta.desktop
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
@ -27,6 +27,7 @@ def __init__(self, parent=None):
|
|||
self.setWindowTitle('Vorta for Borg Backup')
|
||||
self.setAttribute(QtCore.Qt.WA_DeleteOnClose, True)
|
||||
self.app = parent
|
||||
self.setWindowIcon(get_colored_icon("icon"))
|
||||
self.setWindowFlags(QtCore.Qt.WindowCloseButtonHint | QtCore.Qt.WindowMinimizeButtonHint)
|
||||
self.createStartBtn = LoadingButton(self.tr("Start Backup"))
|
||||
self.gridLayout.addWidget(self.createStartBtn, 0, 0, 1, 1)
|
||||
|
|
Loading…
Reference in a new issue