mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
removed duplicate ;
This commit is contained in:
@@ -128,7 +128,7 @@ class LinuxFontPolicy
|
|||||||
// find last word in family
|
// find last word in family
|
||||||
int index = family.lastIndexOf( ' ' );
|
int index = family.lastIndexOf( ' ' );
|
||||||
if( index < 0 )
|
if( index < 0 )
|
||||||
return createFont( "Dialog", style, size, dsize );;
|
return createFont( "Dialog", style, size, dsize );
|
||||||
|
|
||||||
// check whether last work contains some font weight (e.g. Ultra-Bold or Heavy)
|
// check whether last work contains some font weight (e.g. Ultra-Bold or Heavy)
|
||||||
String lastWord = family.substring( index + 1 ).toLowerCase();
|
String lastWord = family.substring( index + 1 ).toLowerCase();
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ public class FlatAnimatedIconTest
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void paintIconAnimated( Component c, Graphics g, int x, int y, float animatedValue ) {
|
public void paintIconAnimated( Component c, Graphics g, int x, int y, float animatedValue ) {
|
||||||
Color color = ColorFunctions.mix( onColor, offColor, animatedValue );;
|
Color color = ColorFunctions.mix( onColor, offColor, animatedValue );
|
||||||
|
|
||||||
// border
|
// border
|
||||||
g.setColor( color );
|
g.setColor( color );
|
||||||
@@ -190,7 +190,7 @@ public class FlatAnimatedIconTest
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void paintIconAnimated( Component c, Graphics g, int x, int y, float animatedValue ) {
|
public void paintIconAnimated( Component c, Graphics g, int x, int y, float animatedValue ) {
|
||||||
Color color = ColorFunctions.mix( onColor, offColor, animatedValue );;
|
Color color = ColorFunctions.mix( onColor, offColor, animatedValue );
|
||||||
|
|
||||||
g.setColor( color );
|
g.setColor( color );
|
||||||
g.fillRoundRect( x, y, width, height, height, height );
|
g.fillRoundRect( x, y, width, height, height, height );
|
||||||
|
|||||||
Reference in New Issue
Block a user