mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
jsvg: fixed color filter in FlatSVGIcon
This commit is contained in:
@@ -984,6 +984,18 @@ public class FlatSVGIcon
|
|||||||
this.grayFilter = grayFilter;
|
this.grayFilter = grayFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Graphics create() {
|
||||||
|
return new GraphicsFilter( (Graphics2D) super.create(),
|
||||||
|
colorFilter, globalColorFilter, grayFilter );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Graphics create( int x, int y, int width, int height ) {
|
||||||
|
return new GraphicsFilter( (Graphics2D) super.create( x, y, width, height ),
|
||||||
|
colorFilter, globalColorFilter, grayFilter );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setColor( Color c ) {
|
public void setColor( Color c ) {
|
||||||
super.setColor( filterColor( c ) );
|
super.setColor( filterColor( c ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user