Skip to content

Use Colors.primary in components and change primary color to violet30 #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/src/screens/MainScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class MainScreen extends Component {
paddingV-s2
onPress={() => this.openScreen(item)}
onLongPress={() => this.setDefaultScreen(item)}
activeBackgroundColor={Colors.blue40}
activeBackgroundColor={Colors.primary}
activeOpacity={1}
>
<Text style={[item.deprecate && styles.entryTextDeprecated]} dark10 text50>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/screens/componentScreens/ActionBarScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class ActionBarScreen extends Component {

<View style={styles.page}>
<ActionBar
backgroundColor={Colors.blue30}
backgroundColor={Colors.primary}
actions={[
{label: 'Hide', onPress: () => Alert.alert('hide'), white: true},
{label: 'Add Discount', onPress: () => Alert.alert('add discount'), white: true},
Expand Down
4 changes: 2 additions & 2 deletions demo/src/screens/componentScreens/ButtonsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class ButtonsScreen extends Component {

<Button
style={{marginBottom: ButtonSpace}}
blue30
primary
outline
iconSource={plusIcon}
label="Icon"
Expand All @@ -339,7 +339,7 @@ export default class ButtonsScreen extends Component {
style={{marginBottom: ButtonSpace}}
>
<Image source={plusIcon} />
<Text style={{marginLeft: 10, color: Colors.blue30}}>
<Text marginL-10 primary>
Custom Icon
</Text>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion generatedTypes/components/avatar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ declare function createStyles(props: AvatarProps): {
lineHeight: undefined;
};
ribbon: {
backgroundColor: string;
backgroundColor: any;
paddingHorizontal: number;
paddingVertical: number;
};
Expand Down
2 changes: 1 addition & 1 deletion generatedTypes/components/button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ declare class Button extends PureComponent<Props, ButtonState> {
getContainerSizeStyle(): any;
getOutlineStyle(): {
borderWidth: number;
borderColor: string;
borderColor: any;
} | undefined;
getBorderRadiusStyle(): {
borderRadius: number;
Expand Down
3 changes: 2 additions & 1 deletion generatedTypes/components/card/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ declare const _default: React.ComponentClass<ViewProps & Pick<import("react-nati
} | undefined;
activeBackgroundColor?: string | undefined;
useNative?: boolean | undefined;
customValue?: any; /**
customValue?: any;
/**
* card custom height
*/
style?: false | {} | ViewStyle | import("react-native").RegisteredStyle<ViewStyle> | import("react-native").RecursiveArray<false | ViewStyle | import("react-native").RegisteredStyle<ViewStyle> | null | undefined> | {
Expand Down
2 changes: 1 addition & 1 deletion generatedTypes/components/tabController/TabBarItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class TabBarItem extends PureComponent<Props> {
getItemStyle(): any[];
getLabelStyle(): (TextStyle | _.Dictionary<Reanimated.Node<number> | Reanimated.Node<string | number | boolean> | Reanimated.Node<"normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"> | undefined> | undefined)[];
getIconStyle(): {
tintColor: Reanimated.Node<string>;
tintColor: Reanimated.Node<any>;
};
render(): JSX.Element;
}
Expand Down
2 changes: 1 addition & 1 deletion generatedTypes/style/componentsColors.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare const ComponentsColors: {
CTA: string;
CTA: any;
disabledText: string;
};
export default ComponentsColors;
12 changes: 6 additions & 6 deletions generatedTypes/style/themeManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export declare class ThemeManager {
theme: {
primaryColor: string;
primaryColor: any;
CTA: {
textColor: string;
disabledColor: string;
backgroundColor: string;
backgroundColor: any;
};
titleColor: string;
subtitleColor: string;
Expand All @@ -16,11 +16,11 @@ export declare class ThemeManager {
};
setTheme(overrides: Dictionary<string>): void;
getTheme(): {
primaryColor: string;
primaryColor: any;
CTA: {
textColor: string;
disabledColor: string;
backgroundColor: string;
backgroundColor: any;
};
titleColor: string;
subtitleColor: string;
Expand All @@ -33,10 +33,10 @@ export declare class ThemeManager {
setComponentForcedTheme(componentName: string, overrides: Dictionary<any> | Function): void;
get components(): Extendable;
get forcedThemeComponents(): Extendable;
get primaryColor(): string;
get primaryColor(): any;
get CTATextColor(): string;
get CTADisabledColor(): string;
get CTABackgroundColor(): string;
get CTABackgroundColor(): any;
get titleColor(): string;
get subtitleColor(): string;
get dividerColor(): string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function createStyles(props: AvatarProps) {
lineHeight: undefined
},
ribbon: {
backgroundColor: Colors.blue30,
backgroundColor: Colors.primary,
paddingHorizontal: 6,
paddingVertical: 3
}
Expand Down
Loading