[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: added menu-related defaults to MetalLookAndFeel.java
From: |
David Gilbert |
Subject: |
[cp-patches] FYI: added menu-related defaults to MetalLookAndFeel.java |
Date: |
Wed, 27 Jul 2005 08:56:20 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050426) |
I committed this patch, which takes the menus under the MetalLookAndFeel
a little step closer to the "Metal" look:
2005-07-27 David Gilbert <address@hidden>
* javax/swing/plaf/metal/MetalLookAndFeel.java
(initComponentDefaults): added menu-related defaults.
Regards,
Dave Gilbert
Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.33
diff -u -r1.33 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java 26 Jul 2005 14:32:21
-0000 1.33
+++ javax/swing/plaf/metal/MetalLookAndFeel.java 27 Jul 2005 07:47:34
-0000
@@ -788,13 +788,19 @@
"Label.disabledForeground", new ColorUIResource(getControlDisabled()),
"Label.foreground", new ColorUIResource(getSystemTextColor()),
"Menu.background", new ColorUIResource(getControl()),
+ "Menu.border", new MetalBorders.MenuItemBorder(),
+ "Menu.borderPainted", Boolean.TRUE,
"Menu.font", getControlTextFont(),
+ "Menu.selectionBackground", getMenuSelectedBackground(),
+ "Menu.selectionForeground", getMenuSelectedForeground(),
"MenuBar.background", new ColorUIResource(getControl()),
"MenuBar.border", new MetalBorders.MenuBarBorder(),
"MenuBar.font", getControlTextFont(),
"MenuItem.background", new ColorUIResource(getControl()),
"MenuItem.border", new MetalBorders.MenuItemBorder(),
"MenuItem.font", getControlTextFont(),
+ "MenuItem.selectionBackground", getMenuSelectedBackground(),
+ "MenuItem.selectionForeground", getMenuSelectedForeground(),
"RadioButton.icon",
new UIDefaults.LazyValue()
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: added menu-related defaults to MetalLookAndFeel.java,
David Gilbert <=