mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
FlatSVGIcon: Fixed an oversight
This commit is contained in:
@@ -581,7 +581,7 @@ public class FlatSVGIcon
|
||||
* @see GrayFilter
|
||||
*/
|
||||
public static Function<Color, Color> createGrayFilterFunction(int brightness, int contrast, int alpha) {
|
||||
return color -> new Color(new GrayFilter().filterRGB( 0, 0, color.getRGB() ));
|
||||
return color -> new Color(new GrayFilter(brightness, contrast, alpha).filterRGB( 0, 0, color.getRGB() ));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user