We can customize the application by adding a new file under components/ui/themes and import that file in components/ui/styleUtils.ts and assign that to Theme variable in it. Default Gradient theme is referred as DefaultTheme.
HomeScreenLogo: require(path of logo you want to use, in string format) in a theme file
Example:-
import HomeScreenLogo from '../../../assets/InjiHomeLogo.svg';
export const DefaultTheme = {
HomeScreenLogo: HomeScreenLogo
...
}
Profile logo is part of downloaded verifiable credential. If credential doesn't face/photo attribute, default profile icon is being used.
To change the profile logo, In ProfileIcon.tsx, refer
import {Icon} from 'react-native-elements';
use `person` as icon from the library
Card background is driven by wellknown exposed by issuing authoriy. If background details are not exposed, default background is being used. To change card background on home screen if not provided by issuer:
CloseCard: require(path of the image you want to use, in string format)
Example:-
export const DefaultTheme = {
CloseCard: require('../../../assets/Card_Bg1.png'),
...
}
To change background on card details screen if not provided by issuer
OpenCard: require(path of the image you want to use, in string format)
Example:-
export const DefaultTheme = {
OpenCard: require('../../../assets/Card_Bg1.png'),
...
}
Card content text color is driven by wellknown exposed by issuing authoriy. If text color is not exposed, default color is being used. To change default Label text color if not provided by issuer:
The VC can be dynamically rendered with all the fields, and if the display properties provided in the .well-known, Inji Wallet downloads the .well-known and applies the below properties on the VC template to modify the VC render.
Text colour
Background colour
Logo change
{
"display": [
{
"name": "MOSIP Identity Verifiable Credential",
"locale": "en",
"logo": {
"url": "https://esignet.collab.mosip.net/logo.png",
"alt_text": "a square logo of a Esignet"
},
"background_color": "#FDFAF9",
"text_color": "#7C4616"
}
]
}