Ajout logo CopyDev, icone et page A propos professionnelle

- Logo CopyDev 500x500 + icone 64x64
- Icone affichee dans la barre de titre et la taskbar
- Page A propos avec logo, version, description, coordonnees
  contact@copydev.fr, www.copydev.fr, copyright 2026

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jules
2026-03-20 11:19:19 +01:00
parent b9f7b38f43
commit 5bd4a18660
4 changed files with 84 additions and 7 deletions

View File

@@ -36,6 +36,13 @@ class MainWindow(QMainWindow):
super().__init__()
self.setWindowTitle("Copydev Imposing Tool")
self.setMinimumSize(1000, 700)
# Icone de la fenetre
from PyQt6.QtGui import QIcon
icon_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
"resources", "logo.png")
if os.path.exists(icon_path):
self.setWindowIcon(QIcon(icon_path))
self._current_file = None
self._result_file = None
self._setup_menu()
@@ -331,11 +338,75 @@ class MainWindow(QMainWindow):
QMessageBox.critical(self, "Erreur", str(e))
def _show_about(self):
QMessageBox.about(
self,
"A propos",
"Copydev Imposing Tool\n\n"
"Outil d'imposition PDF\n"
"Remplace Quite Imposing Plus\n\n"
"Copydev 2026"
from PyQt6.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QDialogButtonBox
from PyQt6.QtGui import QPixmap
from PyQt6.QtCore import Qt
dlg = QDialog(self)
dlg.setWindowTitle("A propos")
dlg.setFixedSize(480, 380)
layout = QVBoxLayout(dlg)
# Logo
logo_label = QLabel()
logo_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
"resources", "logo.png")
if os.path.exists(logo_path):
pixmap = QPixmap(logo_path).scaled(120, 120, Qt.AspectRatioMode.KeepAspectRatio,
Qt.TransformationMode.SmoothTransformation)
logo_label.setPixmap(pixmap)
logo_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
layout.addWidget(logo_label)
# Titre
title = QLabel("<h2>Copydev Imposing Tool</h2>")
title.setAlignment(Qt.AlignmentFlag.AlignCenter)
layout.addWidget(title)
# Version
version = QLabel("Version 1.0.0")
version.setAlignment(Qt.AlignmentFlag.AlignCenter)
version.setStyleSheet("color: #666;")
layout.addWidget(version)
layout.addSpacing(10)
# Description
desc = QLabel(
"Outil professionnel d'imposition PDF.\n"
"Creation de livrets, n-up, repetition, imposition manuelle,\n"
"numerotation, masquage et fonds perdus."
)
desc.setAlignment(Qt.AlignmentFlag.AlignCenter)
desc.setWordWrap(True)
layout.addWidget(desc)
layout.addSpacing(15)
# Coordonnees
contact = QLabel(
'<p style="text-align:center;">'
'<b>CopyDev</b><br>'
'Jules Dubois<br>'
'<a href="mailto:contact@copydev.fr">contact@copydev.fr</a><br>'
'<a href="https://copydev.fr">www.copydev.fr</a>'
'</p>'
)
contact.setAlignment(Qt.AlignmentFlag.AlignCenter)
contact.setOpenExternalLinks(True)
layout.addWidget(contact)
layout.addSpacing(5)
# Copyright
copy_label = QLabel("© 2026 CopyDev — Tous droits reserves")
copy_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
copy_label.setStyleSheet("color: #999; font-size: 11px;")
layout.addWidget(copy_label)
# Bouton Fermer
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Close)
buttons.rejected.connect(dlg.close)
layout.addWidget(buttons)
dlg.exec()

View File

@@ -42,6 +42,12 @@ def main():
app.setApplicationName("Copydev Imposing Tool")
app.setOrganizationName("Copydev")
# Icone application
from PyQt6.QtGui import QIcon
icon_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "resources", "logo.png")
if os.path.exists(icon_path):
app.setWindowIcon(QIcon(icon_path))
if not _check_auth():
sys.exit(1)

BIN
resources/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
resources/logo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB