|
@@ -55,7 +55,9 @@ public class StyleParamsParser {
|
55
|
55
|
result.titleBarDisabledButtonColor = getColor("titleBarDisabledButtonColor", getTitleBarDisabledButtonColor());
|
56
|
56
|
result.titleBarTitleFont = getFont("titleBarTitleFontFamily", getDefaultTitleTextFontFamily());
|
57
|
57
|
result.titleBarTitleFontSize = getInt("titleBarTitleFontSize", getDefaultTitleTextFontSize());
|
|
58
|
+ result.titleBarTitleFontBold = getBoolean("titleBarTitleFontBold", getDefaultTitleTextFontBold());
|
58
|
59
|
result.titleBarTitleTextCentered = getBoolean("titleBarTitleTextCentered", getDefaultTitleBarTextCentered());
|
|
60
|
+ result.titleBarHeight = getInt("titleBarHeight", getDefaultTitleBarHeight());
|
59
|
61
|
result.backButtonHidden = getBoolean("backButtonHidden", getDefaultBackButtonHidden());
|
60
|
62
|
result.topTabsHidden = getBoolean("topTabsHidden", getDefaultTopTabsHidden());
|
61
|
63
|
|
|
@@ -66,6 +68,7 @@ public class StyleParamsParser {
|
66
|
68
|
result.selectedTopTabIndicatorHeight = getInt("selectedTopTabIndicatorHeight", getDefaultSelectedTopTabIndicatorHeight());
|
67
|
69
|
result.selectedTopTabIndicatorColor = getColor("selectedTopTabIndicatorColor", getDefaultSelectedTopTabIndicatorColor());
|
68
|
70
|
result.topTabsScrollable = getBoolean("topTabsScrollable", getDefaultTopTabsScrollable());
|
|
71
|
+ result.topTabsHeight = getInt("topTabsHeight", getDefaultTopTabsHeight());
|
69
|
72
|
|
70
|
73
|
result.screenBackgroundColor = getColor("screenBackgroundColor", getDefaultScreenBackgroundColor());
|
71
|
74
|
|
|
@@ -194,6 +197,10 @@ public class StyleParamsParser {
|
194
|
197
|
return AppStyle.appStyle != null && AppStyle.appStyle.topTabsScrollable;
|
195
|
198
|
}
|
196
|
199
|
|
|
200
|
+ private int getDefaultTopTabsHeight() {
|
|
201
|
+ return AppStyle.appStyle == null ? -1 : AppStyle.appStyle.topTabsHeight;
|
|
202
|
+ }
|
|
203
|
+
|
197
|
204
|
private StyleParams.Color getDefaultTopTabIconColor() {
|
198
|
205
|
return AppStyle.appStyle == null ? new StyleParams.Color() : AppStyle.appStyle.topTabIconColor;
|
199
|
206
|
}
|
|
@@ -254,10 +261,18 @@ public class StyleParamsParser {
|
254
|
261
|
return AppStyle.appStyle == null ? -1 : AppStyle.appStyle.titleBarTitleFontSize;
|
255
|
262
|
}
|
256
|
263
|
|
|
264
|
+ private boolean getDefaultTitleTextFontBold() {
|
|
265
|
+ return AppStyle.appStyle != null && AppStyle.appStyle.titleBarTitleFontBold;
|
|
266
|
+ }
|
|
267
|
+
|
257
|
268
|
private boolean getDefaultTitleBarTextCentered() {
|
258
|
269
|
return AppStyle.appStyle != null && AppStyle.appStyle.titleBarTitleTextCentered;
|
259
|
270
|
}
|
260
|
271
|
|
|
272
|
+ private int getDefaultTitleBarHeight() {
|
|
273
|
+ return AppStyle.appStyle == null ? -1 : AppStyle.appStyle.titleBarHeight;
|
|
274
|
+ }
|
|
275
|
+
|
261
|
276
|
private boolean getBoolean(String key, boolean defaultValue) {
|
262
|
277
|
return params.containsKey(key) ? params.getBoolean(key) : defaultValue;
|
263
|
278
|
}
|