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. Orange theme is referred as DefaultTheme.
MosipLogo: require(path of logo you want to use, in string format) in a theme file
Example:-
export const DefaultTheme = {
MosipLogo: require('../../assets/mosip-logo.png')
...
}
To change the profile logo which is available as a demo while loading the vc details:
cardFaceIcon: require(path of logo you want to use, in string format)
Example:-
export const DefaultTheme = {
cardFaceIcon: require('../../assets/placeholder-photo.png')
...
}
To change the CloseCard details background:
CloseCard: require(path of the image you want to use, in string format)
Example:-
export const DefaultTheme = {
CloseCard: require('../../assets/card_bg.png')
...
}
To change the OpenCard card details background:
OpenCard: require(path of the image you want to use, in string format)
Example:-
export const DefaultTheme = {
OpenCard: require('../../assets/card_bg.png')
...
}
To change the top header icons:
In HomeScreenLayout.tsx, refer
const HomeScreenOptions = {
headerLeft: () // for Inji icon
headerRight: () // for help and setting icon
}
text can be changed by name attribute logo can be changed by icon attribute colour can be changed by color attribute in MainLayout.tsx while rendering Navigator
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"
}
]
}