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