1 30 31 package com.jgoodies.looks.plastic.theme; 32 33 import javax.swing.UIDefaults ; 34 import javax.swing.plaf.ColorUIResource ; 35 36 import com.jgoodies.looks.plastic.PlasticScrollBarUI; 37 38 46 public class ExperienceBlue extends DesertBluer { 47 48 public String getName() { 49 return "Experience Blue"; 50 } 51 52 private static final ColorUIResource secondary1 = 53 new ColorUIResource (128, 128, 128); 54 55 private static final ColorUIResource secondary2 = 56 new ColorUIResource (189, 190, 176); 57 58 private static final ColorUIResource secondary3 = 59 new ColorUIResource (236, 233, 216); 60 61 protected ColorUIResource getPrimary1() { 62 return Colors.BLUE_MEDIUM_DARK; 63 } 64 65 protected ColorUIResource getPrimary2() { 66 return Colors.BLUE_LOW_MEDIUM; 67 } 68 69 protected ColorUIResource getPrimary3() { 70 return Colors.BLUE_LOW_LIGHTEST; 71 } 72 73 protected ColorUIResource getSecondary1() { 74 return secondary1; 75 } 76 77 protected ColorUIResource getSecondary2() { 78 return secondary2; 79 } 80 81 protected ColorUIResource getSecondary3() { 82 return secondary3; 83 } 84 85 public ColorUIResource getFocusColor() { 86 return Colors.ORANGE_FOCUS; 87 } 88 89 public ColorUIResource getPrimaryControlShadow() { 90 return getPrimary3(); 91 } 92 93 public ColorUIResource getMenuSelectedBackground() { 94 return getPrimary1(); 95 } 96 public ColorUIResource getMenuSelectedForeground() { 97 return WHITE; 98 } 99 100 public ColorUIResource getMenuItemBackground() { 101 return WHITE; 102 } 103 104 public ColorUIResource getToggleButtonCheckColor() { 105 return Colors.GREEN_CHECK; 106 } 107 108 public void addCustomEntriesToTable(UIDefaults table) { 109 super.addCustomEntriesToTable(table); 110 Object [] uiDefaults = 111 { 112 "ScrollBar.thumbHighlight", 113 getPrimaryControlHighlight(), 114 PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, 115 new Integer (22), 116 }; 117 table.putDefaults(uiDefaults); 118 } 119 120 } | Popular Tags |