change: updated scroll area
This commit is contained in:
parent
74df402710
commit
194a7428bd
1 changed files with 24 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
""")
|
||||
|
||||
|
|
Loading…
Reference in a new issue