|
@@ -17,6 +17,7 @@ public class StyleParamsParser {
|
17
|
17
|
StyleParams result = new StyleParams();
|
18
|
18
|
if (params == null) {
|
19
|
19
|
result.titleBarDisabledButtonColor = getTitleBarDisabledButtonColor();
|
|
20
|
+ result.topBarElevationShadowEnabled = true;
|
20
|
21
|
return result;
|
21
|
22
|
}
|
22
|
23
|
|
|
@@ -29,6 +30,7 @@ public class StyleParamsParser {
|
29
|
30
|
result.collapsingTopBarParams = new CollapsingTopBarParamsParser(params).parse();
|
30
|
31
|
result.titleBarHidden = getBoolean("titleBarHidden", getDefaultTopBarHidden());
|
31
|
32
|
result.topBarTransparent = getBoolean("topBarTransparent", getDefaultTopBarHidden());
|
|
33
|
+ result.topBarElevationShadowEnabled = getBoolean("topBarElevationShadowEnabled", getDefaultTopBarElevationShadowEnabled());
|
32
|
34
|
result.titleBarTitleColor = getColor("titleBarTitleColor", getDefaultTitleBarColor());
|
33
|
35
|
result.topBarTranslucent = getBoolean("topBarTranslucent", getDefaultTopBarTranslucent());
|
34
|
36
|
result.titleBarHideOnScroll = getBoolean("titleBarHideOnScroll", getDefaultTitleBarHideOnScroll());
|
|
@@ -173,6 +175,10 @@ public class StyleParamsParser {
|
173
|
175
|
return AppStyle.appStyle != null && AppStyle.appStyle.topBarTransparent;
|
174
|
176
|
}
|
175
|
177
|
|
|
178
|
+ private boolean getDefaultTopBarElevationShadowEnabled() {
|
|
179
|
+ return AppStyle.appStyle == null || AppStyle.appStyle.topBarElevationShadowEnabled;
|
|
180
|
+ }
|
|
181
|
+
|
176
|
182
|
private boolean getDefaultTopBarTranslucent() {
|
177
|
183
|
return AppStyle.appStyle != null && AppStyle.appStyle.topBarTranslucent;
|
178
|
184
|
}
|