[INJIMOB-2313]: modify fallback colors for vc rendering (#1716)

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
This commit is contained in:
adityankannan-tw
2024-11-29 12:01:24 +05:30
committed by GitHub
parent 6b03ee6781
commit 0379bb13b3
4 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ export const VCCardViewContent: React.FC<VCItemContentProps> = props => {
<KebabPopUp
iconColor={getTextColor(
props.wellknown,
Theme.Colors.helpText,
Theme.Colors.blackIcon,
)}
vcMetadata={props.vcMetadata}
iconName="dots-three-horizontal"

View File

@@ -114,7 +114,7 @@ export const VCDetailView: React.FC<VCItemDetailsProps> = props => {
{
borderBottomColor: getTextColor(
props.wellknown,
Theme.Styles.hrLine.borderBottomColor,
Theme.Colors.blackIcon,
),
},
]}></View>

View File

@@ -14,7 +14,7 @@ export const VCItemFieldName = ({fieldName, wellknown, testID}) => {
{fieldName && (
<Text
testID={`${testID}Title`}
color={getTextColor(wellknown, Theme.Colors.DetailsLabel)}
color={getTextColor(wellknown, Theme.Colors.Details)}
style={Theme.Styles.fieldItemTitle}>
{fieldName}
</Text>

View File

@@ -101,7 +101,7 @@ export const getFieldName = (field: string, wellknown: any) => {
export const getBackgroundColour = (wellknown: any) => {
return {
backgroundColor:
wellknown?.display[0]?.background_color ?? Theme.Colors.textValue,
wellknown?.display[0]?.background_color ?? Theme.Colors.whiteBackgroundColor,
};
};