1 30 31 package com.jgoodies.looks.plastic.theme; 32 33 import javax.swing.plaf.ColorUIResource ; 34 35 import com.jgoodies.looks.plastic.PlasticLookAndFeel; 36 37 43 44 public class SkyKrupp extends AbstractSkyTheme { 45 46 public String getName() { 47 return "Sky Krupp"; 48 } 49 50 private final ColorUIResource primary1 = new ColorUIResource (54, 54, 90); 51 private final ColorUIResource primary2 = new ColorUIResource (156, 156, 178); 52 private final ColorUIResource primary3 = new ColorUIResource (197, 197, 221); 53 54 protected ColorUIResource getPrimary1() { 55 return primary1; 56 } 57 protected ColorUIResource getPrimary2() { 58 return primary2; 59 } 60 protected ColorUIResource getPrimary3() { 61 return primary3; 62 } 63 64 public ColorUIResource getMenuItemSelectedBackground() { 65 return getPrimary1(); 66 } 67 public ColorUIResource getMenuItemSelectedForeground() { 68 return getWhite(); 69 } 70 public ColorUIResource getMenuSelectedBackground() { 71 return getSecondary2(); 72 } 73 74 public ColorUIResource getFocusColor() { 75 return PlasticLookAndFeel.useHighContrastFocusColors 76 ? Colors.ORANGE_FOCUS 77 : Colors.GRAY_DARK; 78 } 79 80 } 81 | Popular Tags |