From 194a7428bd91450274ecba984ec1b3b738e35e82 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 5 Oct 2025 02:20:42 +0100 Subject: [PATCH] change: updated scroll area --- gui/__main__.py | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/gui/__main__.py b/gui/__main__.py index fe9122e..6b2c762 100755 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -1289,20 +1289,28 @@ class MenuPage(Page): border: none; } QScrollBar:vertical { - background-color: transparent; - width: 0px; + background-color: rgba(128, 128, 128, 0.3); + width: 12px; + border-radius: 6px; } QScrollBar::handle:vertical { - background-color: transparent; + background-color: rgba(0, 255, 255, 0.7); + border-radius: 6px; + min-height: 20px; + } + QScrollBar::handle:vertical:hover { + background-color: rgba(0, 255, 255, 0.9); } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { background-color: transparent; + height: 0px; } """) self.scroll_widget = QWidget() self.scroll_widget.setStyleSheet("background-color: transparent;") self.scroll_area.setWidget(self.scroll_widget) + self.not_connected_profile = os.path.join(self.btn_path, "button_profile.png") self.connected_profile = os.path.join(self.btn_path, "button_session_profile.png") @@ -1509,7 +1517,7 @@ class MenuPage(Page): index = profile_list.index(f'Profile_{profile_id}') row, column = divmod(index, 2) - parent_label.setGeometry(column * 185, row * 120, 175, 100) + parent_label.setGeometry(column * 179, row * 120, 175, 100) parent_label.setVisible(True) return parent_label @@ -1563,6 +1571,7 @@ class MenuPage(Page): child_label.setGeometry(3 + j * 60, 5, 50, 50) child_label.setObjectName("label_profiles") child_label.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents) + child_label.setStyleSheet("background-color: rgba(128, 128, 128, 0.5); border-radius: 25px;") image_path = self.get_icon_path(label_name, value, connection_type) pixmap = QPixmap(image_path) if pixmap.isNull() and label_name == 'location': @@ -1587,6 +1596,7 @@ class MenuPage(Page): child_label.setGeometry(3 + j * 60, 5, 50, 50) child_label.setObjectName("label_profiles") child_label.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents) + child_label.setStyleSheet("background-color: rgba(128, 128, 128, 0.5); border-radius: 25px;") image_path = self.get_icon_path(label_name, value, connection_type) pixmap = QPixmap(image_path) @@ -4752,14 +4762,21 @@ class Settings(Page): border: none; } QScrollBar:vertical { - background-color: transparent; - width: 0px; + background-color: rgba(128, 128, 128, 0.3); + width: 12px; + border-radius: 6px; } QScrollBar::handle:vertical { - background-color: transparent; + background-color: rgba(0, 255, 255, 0.7); + border-radius: 6px; + min-height: 20px; + } + QScrollBar::handle:vertical:hover { + background-color: rgba(0, 255, 255, 0.9); } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { background-color: transparent; + height: 0px; } """)