Skip to content

Commit

Permalink
Merge pull request #3912 from salachi/TIMOB-8701-ColorBrown
Browse files Browse the repository at this point in the history
TIMOB-8701-Added an entry for color brown in the default color table
  • Loading branch information
ayeung committed Feb 27, 2013
2 parents 066cfa4 + 38d1478 commit 6a9d652
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static int parseColor(String value) {

private static void buildColorTable() {
synchronized(TiColorHelper.class) {
colorTable = new HashMap<String, Integer>(16);
colorTable = new HashMap<String, Integer>(20);

colorTable.put("black", Color.BLACK);
colorTable.put("red", Color.RED);
Expand All @@ -102,6 +102,7 @@ private static void buildColorTable() {
colorTable.put("silver", Color.rgb(0xc0, 0xc0, 0xc0));
colorTable.put("olive", Color.rgb(0x80, 0x80, 0));
colorTable.put("teal", Color.rgb(0x0, 0x80, 0x80));
colorTable.put("brown", Color.rgb(0x99, 0x66, 0x33));
}
}
}

0 comments on commit 6a9d652

Please sign in to comment.