|
@@ -1,5 +1,6 @@
|
1
|
1
|
package com.reactnativenavigation.params.parsers;
|
2
|
2
|
|
|
3
|
+import android.graphics.Color;
|
3
|
4
|
import android.os.Bundle;
|
4
|
5
|
import android.support.annotation.NonNull;
|
5
|
6
|
import android.support.annotation.Nullable;
|
|
@@ -26,6 +27,7 @@ public class StyleParamsParser {
|
26
|
27
|
result.titleBarHidden = getBoolean("titleBarHidden", getDefaultTopBarHidden());
|
27
|
28
|
result.titleBarTitleColor = getColor("titleBarTitleColor", getDefaultTitleBarColor());
|
28
|
29
|
result.titleBarButtonColor = getColor("titleBarButtonColor", getTitleBarButtonColor());
|
|
30
|
+ result.titleBarDisabledButtonColor = getColor("titleBarDisabledButtonColor", getTitleBarDisabledButtonColor());
|
29
|
31
|
result.backButtonHidden = getBoolean("backButtonHidden", getDefaultBackButtonHidden());
|
30
|
32
|
result.topTabsHidden = getBoolean("topTabsHidden", getDefaultTopTabsHidden());
|
31
|
33
|
|
|
@@ -40,7 +42,7 @@ public class StyleParamsParser {
|
40
|
42
|
|
41
|
43
|
result.bottomTabsHidden = getBoolean("bottomTabsHidden", getDefaultBottomTabsHidden());
|
42
|
44
|
result.drawScreenAboveBottomTabs = !result.bottomTabsHidden &&
|
43
|
|
- params.getBoolean("drawScreenAboveBottomTabs", getDefaultDrawScreenAboveBottomTabs());
|
|
45
|
+ params.getBoolean("drawScreenAboveBottomTabs", getDefaultDrawScreenAboveBottomTabs());
|
44
|
46
|
result.bottomTabsHiddenOnScroll =
|
45
|
47
|
getBoolean("bottomTabsHiddenOnScroll", getDefaultBottomTabsHiddenOnScroll());
|
46
|
48
|
result.bottomTabsColor = getColor("bottomTabsColor", getDefaultBottomTabsColor());
|
|
@@ -128,6 +130,11 @@ public class StyleParamsParser {
|
128
|
130
|
return AppStyle.appStyle == null ? new StyleParams.Color() : AppStyle.appStyle.titleBarButtonColor;
|
129
|
131
|
}
|
130
|
132
|
|
|
133
|
+ @Nullable
|
|
134
|
+ private StyleParams.Color getTitleBarDisabledButtonColor() {
|
|
135
|
+ return AppStyle.appStyle == null ? new StyleParams.Color(Color.LTGRAY) : AppStyle.appStyle.titleBarDisabledButtonColor;
|
|
136
|
+ }
|
|
137
|
+
|
131
|
138
|
private boolean getDefaultTopBarHidden() {
|
132
|
139
|
return AppStyle.appStyle != null && AppStyle.appStyle.titleBarHidden;
|
133
|
140
|
}
|