|
@@ -29,6 +29,7 @@ public class BottomTabOptions {
|
29
|
29
|
options.iconColor = ColorParser.parse(json, "iconColor");
|
30
|
30
|
options.selectedIconColor = ColorParser.parse(json, "selectedIconColor");
|
31
|
31
|
options.badge = TextParser.parse(json, "badge");
|
|
32
|
+ options.badgeColor = ColorParser.parse(json, "badgeColor");
|
32
|
33
|
options.testId = TextParser.parse(json, "testID");
|
33
|
34
|
options.fontFamily = typefaceManager.getTypeFace(json.optString("fontFamily", ""));
|
34
|
35
|
options.fontSize = NumberParser.parse(json, "fontSize");
|
|
@@ -44,6 +45,7 @@ public class BottomTabOptions {
|
44
|
45
|
public Color selectedIconColor = new NullColor();
|
45
|
46
|
public Text testId = new NullText();
|
46
|
47
|
public Text badge = new NullText();
|
|
48
|
+ public Color badgeColor = new NullColor();
|
47
|
49
|
public Number fontSize = new NullNumber();
|
48
|
50
|
public Number selectedFontSize = new NullNumber();
|
49
|
51
|
@Nullable public Typeface fontFamily;
|
|
@@ -57,6 +59,7 @@ public class BottomTabOptions {
|
57
|
59
|
if (other.iconColor.hasValue()) iconColor = other.iconColor;
|
58
|
60
|
if (other.selectedIconColor.hasValue()) selectedIconColor = other.selectedIconColor;
|
59
|
61
|
if (other.badge.hasValue()) badge = other.badge;
|
|
62
|
+ if (other.badgeColor.hasValue()) badgeColor = other.badgeColor;
|
60
|
63
|
if (other.testId.hasValue()) testId = other.testId;
|
61
|
64
|
if (other.fontSize.hasValue()) fontSize = other.fontSize;
|
62
|
65
|
if (other.selectedFontSize.hasValue()) selectedFontSize = other.selectedFontSize;
|
|
@@ -71,6 +74,7 @@ public class BottomTabOptions {
|
71
|
74
|
if (!iconColor.hasValue()) iconColor = defaultOptions.iconColor;
|
72
|
75
|
if (!selectedIconColor.hasValue()) selectedIconColor = defaultOptions.selectedIconColor;
|
73
|
76
|
if (!badge.hasValue()) badge = defaultOptions.badge;
|
|
77
|
+ if (!badgeColor.hasValue()) badgeColor = defaultOptions.badgeColor;
|
74
|
78
|
if (!fontSize.hasValue()) fontSize = defaultOptions.fontSize;
|
75
|
79
|
if (!selectedFontSize.hasValue()) selectedFontSize = defaultOptions.selectedFontSize;
|
76
|
80
|
if (fontFamily == null) fontFamily = defaultOptions.fontFamily;
|