* New look and feel and theme selection UI. The old editor is still

there but not used.
* Make compiere swing components works better under window and plastic
look and feel.
* Rename org.compiere.plaf.Adempiere*UI classes back to
org.compiere.plaf.Compiere*UI. This is to make a clean separation
between the new AdempiereLookAndFeel and the old CompiereLookAndFeel.
Any class used by AdempiereLookAndFeel should goes into the
org.adempiere.plaf package instead. As part of the exercise,
AdempierePLAF is moved from org.compiere.plaf to org.adempiere.plaf
* Fixed some bug related UI painting issue after switching of look and
feel. It is still not perfect but much better.
* Added a logout icon. Feel free to replace this if you have a better
one.

Please email me or post into the SF Developer forum is I break anything.
Also, I haven't tested the new code under Linux yet and some localization
work to be done.
This commit is contained in:
Heng Sin Low 2006-11-27 07:57:49 +00:00
parent 0092337fcb
commit 0843ba946f
3 changed files with 13 additions and 11 deletions

View File

@ -198,7 +198,7 @@ public class GridWindow implements Serializable
* Get Color * Get Color
* @return AdempiereColor or null * @return AdempiereColor or null
*/ */
public AdempiereColor getColor() public CompiereColor getColor()
{ {
if (m_vo.AD_Color_ID == 0) if (m_vo.AD_Color_ID == 0)
return null; return null;

View File

@ -95,7 +95,7 @@ public class MColor extends X_AD_Color
* see org.compiere.grid.ed.VColor#getAdempiereColor * see org.compiere.grid.ed.VColor#getAdempiereColor
* @return AdempiereColor * @return AdempiereColor
*/ */
public AdempiereColor getAdempiereColor() public CompiereColor getAdempiereColor()
{ {
if (get_ID() == 0) if (get_ID() == 0)
return null; return null;
@ -107,26 +107,26 @@ public class MColor extends X_AD_Color
log.log(Level.SEVERE, "MColor.getAdempiereColor - No ColorType"); log.log(Level.SEVERE, "MColor.getAdempiereColor - No ColorType");
return null; return null;
} }
AdempiereColor cc = null; CompiereColor cc = null;
// //
if (ColorType.equals(AdempiereColor.TYPE_FLAT)) if (ColorType.equals(CompiereColor.TYPE_FLAT))
{ {
cc = new AdempiereColor(getColor(true), true); cc = new CompiereColor(getColor(true), true);
} }
else if (ColorType.equals(AdempiereColor.TYPE_GRADIENT)) else if (ColorType.equals(CompiereColor.TYPE_GRADIENT))
{ {
int RepeatDistance = getRepeatDistance(); int RepeatDistance = getRepeatDistance();
String StartPoint = getStartPoint(); String StartPoint = getStartPoint();
int startPoint = StartPoint == null ? 0 : Integer.parseInt(StartPoint); int startPoint = StartPoint == null ? 0 : Integer.parseInt(StartPoint);
cc = new AdempiereColor(getColor(true), getColor(false), startPoint, RepeatDistance); cc = new CompiereColor(getColor(true), getColor(false), startPoint, RepeatDistance);
} }
else if (ColorType.equals(AdempiereColor.TYPE_LINES)) else if (ColorType.equals(CompiereColor.TYPE_LINES))
{ {
int LineWidth = getLineWidth(); int LineWidth = getLineWidth();
int LineDistance = getLineDistance(); int LineDistance = getLineDistance();
cc = new AdempiereColor(getColor(false), getColor(true), LineWidth, LineDistance); cc = new CompiereColor(getColor(false), getColor(true), LineWidth, LineDistance);
} }
else if (ColorType.equals(AdempiereColor.TYPE_TEXTURE)) else if (ColorType.equals(CompiereColor.TYPE_TEXTURE))
{ {
int AD_Image_ID = getAD_Image_ID(); int AD_Image_ID = getAD_Image_ID();
String url = getURL(AD_Image_ID); String url = getURL(AD_Image_ID);
@ -134,7 +134,7 @@ public class MColor extends X_AD_Color
return null; return null;
BigDecimal ImageAlpha = getImageAlpha(); BigDecimal ImageAlpha = getImageAlpha();
float compositeAlpha = ImageAlpha == null ? 0.7f : ImageAlpha.floatValue(); float compositeAlpha = ImageAlpha == null ? 0.7f : ImageAlpha.floatValue();
cc = new AdempiereColor(url, getColor(true), compositeAlpha); cc = new CompiereColor(url, getColor(true), compositeAlpha);
} }
return cc; return cc;
} // getAdempiereColor } // getAdempiereColor

View File

@ -20,6 +20,8 @@ import java.awt.*;
import java.text.*; import java.text.*;
import javax.swing.*; import javax.swing.*;
import javax.swing.table.*; import javax.swing.table.*;
import org.adempiere.plaf.AdempierePLAF;
import org.compiere.plaf.*; import org.compiere.plaf.*;
import org.compiere.util.*; import org.compiere.util.*;