Skip to content

Commit

Permalink
feat: added sdk appearance documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
luechenchris committed May 3, 2021
1 parent 318e6a6 commit 1523c41
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,29 @@ let config = OrbaOneConfig().setApiKey("publishable-api-key").setApplicantId("ap
try sdk.startVerification(origin: self)
```

## 7. Customizing the Theme

To ensure that Orba One fits in to your app's existing user experience, you can customize various colors by specifying a theme configuration.

```swift
let appearance = Theme(
colorPrimary: <UIColor>,
colorTextPrimary: <UIColor>,
colorButtonPrimary: <UIColor>,
colorButtonPrimaryText: <UIColor>,
colorButtonPrimaryPressed: <UIColor>,
enableDarkMode: <true | false>)

let config = OrbaOneConfig().setAppearance(appearance).build()
```

```colorPrimary```: Defines the primary accent color for bullet points and highlights.\
```colorTextPrimary```: Defines the text color of Titles.\
```colorButtonPrimary```: Defines the background color of Primary Buttons and the text color of Secondary Buttons.\
```colorButtonPrimaryText```: Defines the text color of Primary Buttons.\
```colorButtonPrimaryPressed```: Defines the background color of Primary Buttons when pressed.\
```enableDarkMode```: Defines the dark mode allowed setting for the SDK.\

## Sample App
A sample app demonstrating the Orba One SDK's implementation has been included. See the SampleApp directory for the Swift implementation.

Expand Down

0 comments on commit 1523c41

Please sign in to comment.