chat patch
This commit is contained in:
parent
fe05985b14
commit
94782618c0
@ -55,10 +55,13 @@ class ChatListView(QWidget):
|
||||
outline: 0;
|
||||
}}
|
||||
QListWidget::item {{
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
}}
|
||||
QListWidget::item:hover {{
|
||||
background-color: {palette['hover']};
|
||||
border: none;
|
||||
}}
|
||||
QScrollBar:vertical {{
|
||||
border: none;
|
||||
@ -80,21 +83,29 @@ class ChatListView(QWidget):
|
||||
self.chat_list.setStyleSheet(existing_styles + f"""
|
||||
QListWidget::item {{
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
}}
|
||||
QListWidget::item:hover {{
|
||||
background-color: transparent;
|
||||
background-color: {palette['hover']};
|
||||
border: none;
|
||||
}}
|
||||
QListWidget::item:selected {{
|
||||
background-color: transparent;
|
||||
background-color: {palette['selected']};
|
||||
border: none;
|
||||
}}
|
||||
QListView::item {{
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
}}
|
||||
QListView::item:hover {{
|
||||
background-color: transparent;
|
||||
background-color: {palette['hover']};
|
||||
border: none;
|
||||
}}
|
||||
QListView::item:selected {{
|
||||
background-color: transparent;
|
||||
background-color: {palette['selected']};
|
||||
border: none;
|
||||
}}
|
||||
QListWidget QLabel {{
|
||||
background-color: transparent;
|
||||
@ -164,3 +175,4 @@ class ChatListView(QWidget):
|
||||
|
||||
# Сохраняем ID чата в словаре
|
||||
self.chat_items_map[id(list_item)] = chat.chat_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user