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 import com.jgoodies.looks.plastic.PlasticTheme; 39 40 46 public class SkyBluer extends PlasticTheme { 47 48 public String getName() { 49 return "Sky Bluer"; 50 } 51 52 protected ColorUIResource getPrimary1() { 53 return Colors.BLUE_MEDIUM_DARKEST; 54 } 55 56 protected ColorUIResource getPrimary2() { 57 return Colors.BLUE_MEDIUM_MEDIUM; 58 } 59 60 protected ColorUIResource getPrimary3() { 61 return Colors.BLUE_MEDIUM_LIGHTEST; 62 } 63 64 protected ColorUIResource getSecondary1() { 65 return Colors.GRAY_MEDIUMDARK; 66 } 67 68 protected ColorUIResource getSecondary2() { 69 return Colors.GRAY_LIGHT; 70 } 71 72 protected ColorUIResource getSecondary3() { 73 return Colors.GRAY_LIGHTER; 74 } 75 76 public ColorUIResource getMenuItemSelectedBackground() { 77 return getPrimary2(); 78 } 79 80 public ColorUIResource getMenuItemSelectedForeground() { 81 return getWhite(); 82 } 83 84 public ColorUIResource getMenuSelectedBackground() { 85 return getSecondary2(); 86 } 87 88 public ColorUIResource getFocusColor() { 89 return PlasticLookAndFeel.useHighContrastFocusColors 90 ? Colors.YELLOW_FOCUS 91 : super.getFocusColor(); 92 } 93 94 100 101 public void addCustomEntriesToTable(UIDefaults table) { 102 super.addCustomEntriesToTable(table); 103 Object [] uiDefaults = 104 { PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, new Integer (30), }; 105 table.putDefaults(uiDefaults); 106 } 107 108 } 109 | Popular Tags |