|
@@ -30,6 +30,7 @@ public class BottomTabOptions {
|
30
|
30
|
options.textColor = ColorParser.parse(json, "textColor");
|
31
|
31
|
options.selectedTextColor = ColorParser.parse(json, "selectedTextColor");
|
32
|
32
|
if (json.has("icon")) options.icon = TextParser.parse(json.optJSONObject("icon"), "uri");
|
|
33
|
+ if (json.has("selectedIcon")) options.selectedIcon = TextParser.parse(json.optJSONObject("selectedIcon"), "uri");
|
33
|
34
|
options.iconColor = ColorParser.parse(json, "iconColor");
|
34
|
35
|
options.selectedIconColor = ColorParser.parse(json, "selectedIconColor");
|
35
|
36
|
options.badge = TextParser.parse(json, "badge");
|
|
@@ -47,6 +48,7 @@ public class BottomTabOptions {
|
47
|
48
|
public Colour textColor = new NullColor();
|
48
|
49
|
public Colour selectedTextColor = new NullColor();
|
49
|
50
|
public Text icon = new NullText();
|
|
51
|
+ public Text selectedIcon = new NullText();
|
50
|
52
|
public Colour iconColor = new NullColor();
|
51
|
53
|
public Colour selectedIconColor = new NullColor();
|
52
|
54
|
public Text testId = new NullText();
|
|
@@ -64,6 +66,7 @@ public class BottomTabOptions {
|
64
|
66
|
if (other.textColor.hasValue()) textColor = other.textColor;
|
65
|
67
|
if (other.selectedTextColor.hasValue()) selectedTextColor = other.selectedTextColor;
|
66
|
68
|
if (other.icon.hasValue()) icon = other.icon;
|
|
69
|
+ if (other.selectedIcon.hasValue()) selectedIcon = other.selectedIcon;
|
67
|
70
|
if (other.iconColor.hasValue()) iconColor = other.iconColor;
|
68
|
71
|
if (other.selectedIconColor.hasValue()) selectedIconColor = other.selectedIconColor;
|
69
|
72
|
if (other.badge.hasValue()) badge = other.badge;
|
|
@@ -81,6 +84,7 @@ public class BottomTabOptions {
|
81
|
84
|
if (!textColor.hasValue()) textColor = defaultOptions.textColor;
|
82
|
85
|
if (!selectedTextColor.hasValue()) selectedTextColor = defaultOptions.selectedTextColor;
|
83
|
86
|
if (!icon.hasValue()) icon = defaultOptions.icon;
|
|
87
|
+ if (!selectedIcon.hasValue()) selectedIcon = defaultOptions.selectedIcon;
|
84
|
88
|
if (!iconColor.hasValue()) iconColor = defaultOptions.iconColor;
|
85
|
89
|
if (!selectedIconColor.hasValue()) selectedIconColor = defaultOptions.selectedIconColor;
|
86
|
90
|
if (!badge.hasValue()) badge = defaultOptions.badge;
|