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 44 45 public class SkyYellow extends AbstractSkyTheme { 46 47 public String getName() { 48 return "Sky Yellow"; 49 } 50 51 protected ColorUIResource getPrimary1() { 52 return Colors.GRAY_DARK; 53 } 54 55 protected ColorUIResource getPrimary2() { 56 return Colors.YELLOW_LOW_MEDIUM; 57 } 58 59 protected ColorUIResource getPrimary3() { 60 return Colors.YELLOW_LOW_LIGHTEST; 61 } 62 63 public ColorUIResource getFocusColor() { 64 return Colors.ORANGE_FOCUS; 65 } 66 67 public ColorUIResource getPrimaryControlShadow() { 68 return getPrimary3(); 69 } 70 71 public ColorUIResource getMenuItemSelectedBackground() { 72 return Colors.YELLOW_LOW_MEDIUMDARK; 73 } 74 75 public void addCustomEntriesToTable(UIDefaults table) { 76 super.addCustomEntriesToTable(table); 77 Object [] uiDefaults = 78 { PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, new Integer (30), }; 79 table.putDefaults(uiDefaults); 80 } 81 82 } 83 | Popular Tags |