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 45 public class DesertYellow extends DesertBlue { 46 47 public String getName() { 48 return "Desert Yellow"; 49 } 50 51 protected ColorUIResource getPrimary2() { 52 return Colors.YELLOW_LOW_MEDIUM; 53 } 54 55 protected ColorUIResource getPrimary3() { 56 return Colors.YELLOW_LOW_LIGHTEST; 57 } 58 59 public ColorUIResource getTitleTextColor() { 60 return Colors.GRAY_DARKER; 61 } 62 63 public ColorUIResource getMenuItemSelectedBackground() { 64 return Colors.YELLOW_LOW_MEDIUMDARK; 65 } 66 67 public void addCustomEntriesToTable(UIDefaults table) { 68 super.addCustomEntriesToTable(table); 69 Object [] uiDefaults = 70 { 71 "ScrollBar.is3DEnabled", 72 Boolean.TRUE, 73 PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, 74 new Integer (30), 75 }; 76 table.putDefaults(uiDefaults); 77 } 78 79 } | Popular Tags |