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.PlasticLookAndFeel; 37 import com.jgoodies.looks.plastic.PlasticScrollBarUI; 38 39 46 public class Silver extends ExperienceBlue { 47 48 public String getName() { 49 return "Silver"; 50 } 51 52 protected ColorUIResource getPrimary1() { 53 return Colors.GRAY_MEDIUM; 54 } 55 56 protected ColorUIResource getPrimary2() { 57 return Colors.GRAY_MEDIUMLIGHT; 58 } 59 60 protected ColorUIResource getPrimary3() { 61 return Colors.GRAY_LIGHTER2; 62 } 63 64 protected ColorUIResource getSecondary1() { 65 return getPrimary1(); 66 } 67 68 protected ColorUIResource getSecondary2() { 69 return getPrimary2(); 70 } 71 72 protected ColorUIResource getSecondary3() { 73 return getPrimary3(); 74 } 75 76 public ColorUIResource getFocusColor() { 77 return PlasticLookAndFeel.useHighContrastFocusColors 78 ? Colors.ORANGE_FOCUS 79 : Colors.BLUE_MEDIUM_DARK; 80 } 81 82 public ColorUIResource getTitleTextColor() { 83 return Colors.GRAY_DARKEST; 84 } 85 86 public void addCustomEntriesToTable(UIDefaults table) { 87 super.addCustomEntriesToTable(table); 88 Object [] uiDefaults = 89 { PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, new Integer (50), }; 90 table.putDefaults(uiDefaults); 91 } 92 93 } | Popular Tags |