mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: typo on android utils, getPalleteColor to getPaletteColor (#4687)
* fix: typo on android, getPalleteColor to getPaletteColor * fix: adress comments
This commit is contained in:
committed by
Alexander Vakrilov
parent
1171da2742
commit
7b364613da
@@ -176,7 +176,7 @@ let defaultAccentColor: number = undefined;
|
||||
function getDefaultAccentColor(context: android.content.Context): number {
|
||||
if (defaultAccentColor === undefined) {
|
||||
//Fallback color: https://developer.android.com/samples/SlidingTabsColors/src/com.example.android.common/view/SlidingTabStrip.html
|
||||
defaultAccentColor = ad.resources.getPalleteColor(ACCENT_COLOR, context) || 0xFF33B5E5;
|
||||
defaultAccentColor = ad.resources.getPaletteColor(ACCENT_COLOR, context) || 0xFF33B5E5;
|
||||
}
|
||||
return defaultAccentColor;
|
||||
}
|
||||
@@ -299,7 +299,7 @@ export class TabView extends TabViewBase {
|
||||
tabLayout.setSelectedIndicatorColors([accentColor]);
|
||||
}
|
||||
|
||||
const primaryColor = ad.resources.getPalleteColor(PRIMARY_COLOR, context);
|
||||
const primaryColor = ad.resources.getPaletteColor(PRIMARY_COLOR, context);
|
||||
if (primaryColor) {
|
||||
tabLayout.setBackgroundColor(primaryColor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user