Skip to content

Commit e8398e3

Browse files
teste 6$
1 parent 01fe771 commit e8398e3

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/build-linux-legacy.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@
5656
--exclude-module PySide6.QtWebEngineWidgets \
5757
DocViewerDesktop/main.py
5858
else
59-
pyinstaller --noconsole --name DocViewer --onefile `
60-
--icon="DocViewerDesktop/resources/icons_svg/doc_icon.ico" `
61-
--add-data "DocViewerDesktop/ui/dark-high-v0.qss;ui" `
62-
--add-data "DocViewerDesktop/resources/icons_svg/*;resources/icons_svg" `
63-
--hidden-import="ui.ui_utils" `
64-
--hidden-import="editor.editor_core" `
65-
--hidden-import="editor.actions.file_actions" `
66-
--hidden-import="editor.actions.edit_actions" `
67-
--exclude-module PySide6.Qt3DCore `
68-
--exclude-module PySide6.Qt3DRender `
69-
--exclude-module PySide6.Qt3DExtras `
70-
--exclude-module PySide6.QtDataVisualization `
71-
--exclude-module PySide6.QtCharts `
72-
--exclude-module PySide6.QtWebEngineWidgets `
59+
pyinstaller --noconsole --name DocViewer --onefile \
60+
--icon="DocViewerDesktop/resources/icons_svg/doc_icon.ico" \
61+
--add-data "DocViewerDesktop/ui/dark-high-v0.qss;ui" \
62+
--add-data "DocViewerDesktop/resources/icons_svg/*;resources/icons_svg" \
63+
--hidden-import="ui.ui_utils" \
64+
--hidden-import="editor.editor_core" \
65+
--hidden-import="editor.actions.file_actions" \
66+
--hidden-import="editor.actions.edit_actions" \
67+
--exclude-module PySide6.Qt3DCore \
68+
--exclude-module PySide6.Qt3DRender \
69+
--exclude-module PySide6.Qt3DExtras \
70+
--exclude-module PySide6.QtDataVisualization \
71+
--exclude-module PySide6.QtCharts \
72+
--exclude-module PySide6.QtWebEngineWidgets \
7373
DocViewerDesktop/main.py
7474
fi
7575
shell: bash

DocViewerDesktop/ui/ui_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from PySide6.QtSvg import QSvgRenderer
66

77
def loadSvgIconColored(file_path, width=80, height=80, color=None):
8+
"""Transforma um arquivo SVG em QPixmap, aplicando uma cor se fornecida."""
89
svg_renderer = QSvgRenderer(file_path)
910
if not svg_renderer.isValid():
1011
raise ValueError(f"Arquivo SVG inválido: {file_path}")

0 commit comments

Comments
 (0)