Skip to content

Commit d8e8114

Browse files
authored
fix: photoUpdate auto_unstrip_dialog.py
1 parent 8b18d24 commit d8e8114

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

revengai/features/auto_unstrip/auto_unstrip_dialog.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,28 @@ def init_ui(self):
2525

2626
layout = QVBoxLayout()
2727

28+
header_layout = QHBoxLayout()
29+
30+
logo_label = QLabel()
31+
logo_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "images", "logo.png")
32+
if os.path.exists(logo_path):
33+
pixmap = QPixmap(logo_path)
34+
pixmap = pixmap.scaled(100, 100, Qt.KeepAspectRatio, Qt.SmoothTransformation)
35+
logo_label.setPixmap(pixmap)
36+
header_layout.addWidget(logo_label)
37+
2838
info_layout = QVBoxLayout()
2939
title_label = QLabel("Auto Unstrip Binary")
3040
title_label.setStyleSheet("font-size: 18px; font-weight: bold;")
3141
description_label = QLabel(
32-
"Using official RevEng.AI sources, function names will be recovered based on a low similarity threshold and limited to available debug symbols.\nFunctions will be renamed automatically for easier analysis.\n\nThis process may take several minutes depending on the binary size."
42+
"Using official RevEng.AI sources, function names will be recovered based on a high similarity and confidence threshold and limited to available debug symbols.\nFunctions will be renamed automatically for easier analysis.\n\nThis process may take several minutes depending on the binary size."
3343
)
3444
description_label.setWordWrap(True)
3545
info_layout.addWidget(title_label)
3646
info_layout.addWidget(description_label)
47+
header_layout.addLayout(info_layout, stretch=1)
3748

38-
layout.addLayout(info_layout)
49+
layout.addLayout(header_layout)
3950
layout.addSpacing(20)
4051

4152
# Buttons
@@ -101,4 +112,4 @@ def _on_auto_unstrip_finished(self, success, message):
101112
"RevEng.AI Auto Unstrip Error",
102113
f"Failed to auto unstrip binary: {message}",
103114
QMessageBox.Ok
104-
)
115+
)

0 commit comments

Comments
 (0)