mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	increase luminance threshold for better readability
This commit is contained in:
		
							parent
							
								
									66fe821b04
								
							
						
					
					
						commit
						3a75b2571a
					
				@ -150,7 +150,7 @@ class TagSerializer(MatchingModelSerializer):
 | 
				
			|||||||
                0.587 * math.pow(rgb[1], 2) +
 | 
					                0.587 * math.pow(rgb[1], 2) +
 | 
				
			||||||
                0.114 * math.pow(rgb[2], 2)
 | 
					                0.114 * math.pow(rgb[2], 2)
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            return "#ffffff" if luminance < 0.5 else "#000000"
 | 
					            return "#ffffff" if luminance < 0.53 else "#000000"
 | 
				
			||||||
        except ValueError:
 | 
					        except ValueError:
 | 
				
			||||||
            return "#000000"
 | 
					            return "#000000"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user