From fd2759f52bb5021851c336a80fc49b546d8a36cc Mon Sep 17 00:00:00 2001 From: Sergey Palcheh Date: Thu, 18 Dec 2025 11:28:38 +0600 Subject: [PATCH] horizontal scrollbar disabled: - the Installed tab in the Wine version selection dialog - download bookmarks (WINE AMD64, WINE WOW64, WINE I586) - dialog for selecting the component version (DXVK/VKD3D) - tabs of the main window: Automatic installation, Manual installation, Installed --- winehelper_gui.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/winehelper_gui.py b/winehelper_gui.py index 5efd0dc..4ad2f16 100644 --- a/winehelper_gui.py +++ b/winehelper_gui.py @@ -1224,6 +1224,7 @@ class WineVersionSelectionDialog(QDialog): installed_layout = QVBoxLayout(installed_tab) installed_scroll_area = QScrollArea() installed_scroll_area.setWidgetResizable(True) + installed_scroll_area.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) installed_layout.addWidget(installed_scroll_area) installed_content = QWidget() installed_scroll_area.setWidget(installed_content) @@ -1296,6 +1297,7 @@ class WineVersionSelectionDialog(QDialog): scroll_area = QScrollArea() scroll_area.setWidgetResizable(True) + scroll_area.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) tab_layout.addWidget(scroll_area) scroll_content = QWidget() @@ -1724,6 +1726,7 @@ class ComponentVersionSelectionDialog(QDialog): self.scroll_area = QScrollArea() self.scroll_area.setWidgetResizable(True) + self.scroll_area.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) main_layout.addWidget(self.scroll_area) scroll_content = QWidget() @@ -2399,7 +2402,27 @@ class WineHelperGUI(QMainWindow): scroll_area = QScrollArea() scroll_area.setWidgetResizable(True) + scroll_area.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) scroll_area.setContentsMargins(0, 0, 0, 0) + # Уменьшаем ширину вертикального скроллбара + scroll_area.setStyleSheet(""" + QScrollBar:vertical { + width: 10px; + background: transparent; + margin: 0px; + } + QScrollBar::handle:vertical { + background: #555; + min-height: 20px; + border-radius: 5px; + } + QScrollBar::handle:vertical:hover { + background: #666; + } + QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { + height: 0px; + } + """) layout.addWidget(scroll_area) scroll_content_widget = QWidget()