patch home
This commit is contained in:
		
							parent
							
								
									55f033ab37
								
							
						
					
					
						commit
						49757604ba
					
				@ -27,10 +27,10 @@ class SideMenuButton(QPushButton):
 | 
			
		||||
 | 
			
		||||
        text_label = QLabel(text)
 | 
			
		||||
        text_label.setObjectName("SideMenuButtonText")
 | 
			
		||||
        text_label.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
 | 
			
		||||
 | 
			
		||||
        layout.addWidget(icon_label)
 | 
			
		||||
        layout.addWidget(text_label)
 | 
			
		||||
        layout.addStretch()
 | 
			
		||||
 | 
			
		||||
class SideMenuFooterButton(QPushButton):
 | 
			
		||||
    """Кастомная кнопка для футера бокового меню."""
 | 
			
		||||
@ -75,7 +75,7 @@ class SideMenuView(QFrame):
 | 
			
		||||
 | 
			
		||||
        main_layout.addWidget(self.header)
 | 
			
		||||
        main_layout.addWidget(self.account_list_container)
 | 
			
		||||
        main_layout.addWidget(self.scroll_area)
 | 
			
		||||
        main_layout.addWidget(self.scroll_area, 1) # Фактор растяжения
 | 
			
		||||
        main_layout.addWidget(self.footer)
 | 
			
		||||
 | 
			
		||||
        # --- Анимация списка аккаунтов ---
 | 
			
		||||
 | 
			
		||||
@ -143,6 +143,19 @@ class YobbleHomeView(QWidget):
 | 
			
		||||
        top_bar_layout.addWidget(self.title_label)
 | 
			
		||||
        top_bar_layout.addStretch()
 | 
			
		||||
 | 
			
		||||
        # Новые кнопки справа
 | 
			
		||||
        self.search_button = QPushButton("🔍")
 | 
			
		||||
        self.search_button.setObjectName("SearchButton")
 | 
			
		||||
        self.search_button.setFocusPolicy(Qt.NoFocus)
 | 
			
		||||
        self.search_button.setCursor(Qt.PointingHandCursor)
 | 
			
		||||
        top_bar_layout.addWidget(self.search_button)
 | 
			
		||||
 | 
			
		||||
        self.notification_button = QPushButton("🔔")
 | 
			
		||||
        self.notification_button.setObjectName("NotificationButton")
 | 
			
		||||
        self.notification_button.setFocusPolicy(Qt.NoFocus)
 | 
			
		||||
        self.notification_button.setCursor(Qt.PointingHandCursor)
 | 
			
		||||
        top_bar_layout.addWidget(self.notification_button)
 | 
			
		||||
 | 
			
		||||
        return top_bar_widget
 | 
			
		||||
 | 
			
		||||
    def create_bottom_bar(self):
 | 
			
		||||
@ -282,8 +295,8 @@ class YobbleHomeView(QWidget):
 | 
			
		||||
                background-color: {top_bar_bg};
 | 
			
		||||
                border-bottom: 1px solid {top_bar_border};
 | 
			
		||||
            }}
 | 
			
		||||
            #BurgerMenuButton {{
 | 
			
		||||
                font-size: 24px;
 | 
			
		||||
            #TopBar QPushButton {{
 | 
			
		||||
                font-size: 22px;
 | 
			
		||||
                border: none;
 | 
			
		||||
                padding: 5px;
 | 
			
		||||
                color: {title_color};
 | 
			
		||||
@ -293,6 +306,9 @@ class YobbleHomeView(QWidget):
 | 
			
		||||
                font-size: 18px;
 | 
			
		||||
                font-weight: bold;
 | 
			
		||||
                color: {title_color};
 | 
			
		||||
                border: none;
 | 
			
		||||
                outline: none;
 | 
			
		||||
                background-color: transparent;
 | 
			
		||||
            }}
 | 
			
		||||
 | 
			
		||||
            /* Нижняя панель */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user