Diff-View-Icon: Semantisch passende Icons mit Fallbacks verwenden
Das Icon zum Laden von Diff-PDFs verwendet jetzt semantisch korrekte Icons: - Primär: view-split-left-right (zeigt Split-View-Konzept) - Fallback: vcs-diff (universelles Diff-Symbol) - Letzter Fallback: system-search Dies verbessert die visuelle Semantik und Plattform-Kompatibilität. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1447,7 +1447,13 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
# Icon-Label
|
# Icon-Label
|
||||||
icon_label = QLabel()
|
icon_label = QLabel()
|
||||||
icon_label.setPixmap(QIcon.fromTheme("document-preview").pixmap(16, 16))
|
# Icon für Diff-View mit Fallbacks
|
||||||
|
icon = QIcon.fromTheme("view-split-left-right")
|
||||||
|
if icon.isNull():
|
||||||
|
icon = QIcon.fromTheme("vcs-diff")
|
||||||
|
if icon.isNull():
|
||||||
|
icon = QIcon.fromTheme("system-search") # Letzter Fallback
|
||||||
|
icon_label.setPixmap(icon.pixmap(16, 16))
|
||||||
icon_label.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
|
icon_label.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
|
||||||
icon_label.setToolTip("Diff-PDF in Viewer laden")
|
icon_label.setToolTip("Diff-PDF in Viewer laden")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user