From 606c70efcc2220dbf95f138fda960a72a595f37f Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sun, 18 Jan 2026 21:39:40 +0100 Subject: [PATCH] add unicode icons for pause/resume and fix action column size --- core/interface/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/interface/gui.py b/core/interface/gui.py index 8e05dfd..ddc43dc 100644 --- a/core/interface/gui.py +++ b/core/interface/gui.py @@ -199,7 +199,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget): col = index.column() if col == 0: - return "Resume" if download.is_paused else "Pause" + return "▶︎" if download.is_paused else "⏸︎" elif col == 1: return download.name elif col == 2: @@ -239,7 +239,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget): button = QStyleOptionButton() button.rect = option.rect - button.text = "Resume" if paused else "Pause" + button.text = "▶︎" if paused else "⏸︎" button.state = QStyle.State_Enabled QApplication.style().drawControl( @@ -255,7 +255,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget): self.download_model = DownloadModel() self.downloadList.setModel(self.download_model) self.downloadList.horizontalHeader().setStretchLastSection(False) - self.downloadList.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch) + self.downloadList.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch) self.downloadList.setSelectionBehavior(QTableView.SelectRows) self.downloadList.setAttribute(Qt.WA_TranslucentBackground) self.downloadList.viewport().setAttribute(Qt.WA_TranslucentBackground)