Fixed ripple color of main menu button in narrow forum state.
This commit is contained in:
		
							parent
							
								
									9b7689993f
								
							
						
					
					
						commit
						38e42f9a95
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -427,6 +427,14 @@ Widget::Widget(
 | 
			
		|||
			updateControlsGeometry();
 | 
			
		||||
		}, lifetime());
 | 
			
		||||
 | 
			
		||||
		_childListShown.changes(
 | 
			
		||||
		) | rpl::filter((rpl::mappers::_1 == 0.) || (rpl::mappers::_1 == 1.)
 | 
			
		||||
		) | rpl::start_with_next([=](float64 shown) {
 | 
			
		||||
			const auto color = (shown > 0.) ? &st::dialogsRippleBg : nullptr;
 | 
			
		||||
			_mainMenuToggle->setRippleColorOverride(color);
 | 
			
		||||
			_searchForNarrowFilters->setRippleColorOverride(color);
 | 
			
		||||
		}, lifetime());
 | 
			
		||||
 | 
			
		||||
		setupDownloadBar();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue