code cleanup

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12322 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Wolf Posdorfer
2011-05-04 07:23:58 +00:00
committed by wolf.posdorfer
parent 8a6527b9c4
commit 76bee685a1

View File

@ -63,17 +63,6 @@ public class LunaIcons extends BaseIcons {
//------------------------------------------------------------------------------
private static class TitleButtonIcon implements Icon {
private static Color blueFrameColor = Color.white;
private static Color blueColorLight = new Color(154, 183, 250);
private static Color blueColorDark = new Color(0, 69, 211);
private static Color closerColorLight = new Color(241, 172, 154);
private static Color closerColorDark = new Color(224, 56, 2);
public static final int ICON_ICON_TYP = 0;
public static final int MIN_ICON_TYP = 1;
public static final int MAX_ICON_TYP = 2;
public static final int CLOSE_ICON_TYP = 3;
private int iconTyp = ICON_ICON_TYP;
private Icon _active;
private Icon _inactive;
@ -94,9 +83,9 @@ public class LunaIcons extends BaseIcons {
AbstractButton btn = (AbstractButton) c;
Graphics2D g2D = (Graphics2D) g;
Color fc = blueFrameColor;
Color cHi = blueColorLight;
Color cLo = blueColorDark;
Color fc = Color.white;
Color cHi = new Color(154, 183, 250);
Color cLo = new Color(0, 69, 211);
int w = c.getWidth();
int h = c.getHeight();
g2D.setPaint(new GradientPaint(0, 0, cHi, w, h, cLo));