Added scroll stuff to theme
This commit is contained in:
		
							parent
							
								
									afd543ce92
								
							
						
					
					
						commit
						cfb08f02bc
					
				
							
								
								
									
										19
									
								
								theme/scroll.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								theme/scroll.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
package theme
 | 
			
		||||
 | 
			
		||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
 | 
			
		||||
 | 
			
		||||
func ScrollGutterPattern (horizontal bool, enabled bool) (artist.Pattern) {
 | 
			
		||||
	if enabled {
 | 
			
		||||
		return sunkenPattern
 | 
			
		||||
	} else {
 | 
			
		||||
		return disabledButtonPattern
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ScrollBarPattern (horizontal bool, enabled bool) (artist.Pattern) {
 | 
			
		||||
	if enabled {
 | 
			
		||||
		return buttonPattern
 | 
			
		||||
	} else {
 | 
			
		||||
		return disabledButtonPattern
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user