Skip to content
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

Tickets Color not changing in the SDK according to the theme #4

Open
hamra123 opened this issue Aug 2, 2023 · 1 comment
Open

Tickets Color not changing in the SDK according to the theme #4

hamra123 opened this issue Aug 2, 2023 · 1 comment

Comments

@hamra123
Copy link

hamra123 commented Aug 2, 2023

Hi there, Can anyone please help me with this:

I am able to change the colours on the login screen but not on the actual tickets screen in accordance to my theme

Screenshot_20230731-093835_CPL Staging

Screenshot_20230731-093855_CPL Staging

This is what im using as mentioned in the docs:

  private fun createTicketsColors(color: Int): TicketsColors =
    TicketsColors(
      lightColors(primary = Color(color), primaryVariant = Color(color), secondary = Color(color)),
      darkColors(primary = Color(color), primaryVariant = Color(color), secondary = Color(color))
    )

TicketsSDKClient
        .Builder()
        .authenticationSDKClient(authentication) //Authentication object
        //Optional value to define the colors for the Tickets page
        .colors(createTicketsColors(android.graphics.Color.parseColor(color)))
        //Function that generates a TicketsSDKClient object
        .build(this@TicketsSdkHostActivity)
        .apply {
          //After creating the TicketsSDKClient object, add it into the TicketsSDKSingleton
          TicketsSDKSingleton.setTicketsSdkClient(this)

          //Validate if there is an active token.
          if (tokenMap.isNotEmpty()) {
            //If there is an active token, it launches the event fragment
            launchTicketsView()
          } else {
            //If there is no active token, it launches a login intent. Launch an ActivityForResult, if result
            //is RESULT_OK, there is an active token to be retrieved.
            resultLauncher.launch(TicketsSDKSingleton.getLoginIntent(this@TicketsSdkHostActivity))
          }
        }

Please help

@hamra123
Copy link
Author

hamra123 commented Aug 9, 2023

@jbackertm @luism-burgos Can you guys please help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant