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 44 public class DesertBluer extends SkyBluerTahoma { 45 46 private final ColorUIResource primary1 = new ColorUIResource ( 10, 36, 106); 47 private final ColorUIResource primary2 = new ColorUIResource ( 85, 115, 170); 48 private final ColorUIResource primary3 = new ColorUIResource (172, 210, 248); 49 50 private final ColorUIResource secondary2 = new ColorUIResource (148, 144, 140); 51 private final ColorUIResource secondary3 = new ColorUIResource (212, 208, 200); 52 53 54 public String getName() { return "Desert Bluer"; } 55 56 57 protected ColorUIResource getPrimary1() { return primary1; } 58 protected ColorUIResource getPrimary2() { return primary2; } 59 protected ColorUIResource getPrimary3() { return primary3; } 60 protected ColorUIResource getSecondary1() { return Colors.GRAY_MEDIUM;} 61 protected ColorUIResource getSecondary2() { return secondary2; } 62 protected ColorUIResource getSecondary3() { return secondary3; } 63 64 public ColorUIResource getTextHighlightColor() { return getPrimary1(); } 65 public ColorUIResource getHighlightedTextColor() { return getWhite(); } 66 public ColorUIResource getMenuItemSelectedBackground() { return getPrimary1(); } 67 68 public ColorUIResource getFocusColor() { 69 return PlasticLookAndFeel.useHighContrastFocusColors 70 ? Colors.ORANGE_FOCUS 71 : super.getFocusColor(); 72 } 73 74 } | Popular Tags |