change: updated scroll area

This commit is contained in:
John 2025-10-05 02:20:42 +01:00
parent 74df402710
commit 194a7428bd

View file

@ -1289,14 +1289,21 @@ class MenuPage(Page):
border: none; border: none;
} }
QScrollBar:vertical { QScrollBar:vertical {
background-color: transparent; background-color: rgba(128, 128, 128, 0.3);
width: 0px; width: 12px;
border-radius: 6px;
} }
QScrollBar::handle:vertical { 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 { QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
background-color: transparent; background-color: transparent;
height: 0px;
} }
""") """)
@ -1304,6 +1311,7 @@ class MenuPage(Page):
self.scroll_widget.setStyleSheet("background-color: transparent;") self.scroll_widget.setStyleSheet("background-color: transparent;")
self.scroll_area.setWidget(self.scroll_widget) self.scroll_area.setWidget(self.scroll_widget)
self.not_connected_profile = os.path.join(self.btn_path, "button_profile.png") 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") self.connected_profile = os.path.join(self.btn_path, "button_session_profile.png")
self.system_wide_connected_profile = os.path.join(self.btn_path, "button_system_profile.png") self.system_wide_connected_profile = os.path.join(self.btn_path, "button_system_profile.png")
@ -1509,7 +1517,7 @@ class MenuPage(Page):
index = profile_list.index(f'Profile_{profile_id}') index = profile_list.index(f'Profile_{profile_id}')
row, column = divmod(index, 2) 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) parent_label.setVisible(True)
return parent_label return parent_label
@ -1563,6 +1571,7 @@ class MenuPage(Page):
child_label.setGeometry(3 + j * 60, 5, 50, 50) child_label.setGeometry(3 + j * 60, 5, 50, 50)
child_label.setObjectName("label_profiles") child_label.setObjectName("label_profiles")
child_label.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents) 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) image_path = self.get_icon_path(label_name, value, connection_type)
pixmap = QPixmap(image_path) pixmap = QPixmap(image_path)
if pixmap.isNull() and label_name == 'location': 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.setGeometry(3 + j * 60, 5, 50, 50)
child_label.setObjectName("label_profiles") child_label.setObjectName("label_profiles")
child_label.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents) 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) image_path = self.get_icon_path(label_name, value, connection_type)
pixmap = QPixmap(image_path) pixmap = QPixmap(image_path)
@ -4752,14 +4762,21 @@ class Settings(Page):
border: none; border: none;
} }
QScrollBar:vertical { QScrollBar:vertical {
background-color: transparent; background-color: rgba(128, 128, 128, 0.3);
width: 0px; width: 12px;
border-radius: 6px;
} }
QScrollBar::handle:vertical { 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 { QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
background-color: transparent; background-color: transparent;
height: 0px;
} }
""") """)