Git Product home page Git Product logo

Comments (5)

ZiadAyman avatar ZiadAyman commented on July 19, 2024

Hey @SudoPlz Thanks for reporting this to us :)

Instabug has two themes the light one and the dark one. Once the SDK is invoked, some changes occur like what you see in your status bar to match the current theme of the SDK.

We'll definitely consider having something more customizable for future references. Thank you again for pointing out this.

from instabug-react-native.

Alex100 avatar Alex100 commented on July 19, 2024

It is possible to change the status bar color: Paste this line in onCreate() of your extended android.app.Application after setting the theme:

SettingsManager.getInstance().setStatusBarColor(ResourcesCompat.getColor(getResources(), R.color.focus_red_dark, null));

However, changing the brightness of the status bar icons is not possible. Instabug must provide a light theme with dark action bar out of the box otherwise any app which is using this kind of theme looks very ugly:
image
So please provide a third com.instabug.library.InstabugColorTheme theme which extends Light.DarkActionBar theme under the hood.

from instabug-react-native.

SudoPlz avatar SudoPlz commented on July 19, 2024

@Alex100 where do you run this code?

I added

SettingsManager.getInstance()
                .setStatusBarColor(ResourcesCompat.getColor(getResources(), R.color.navBarColor, null));

inside the onCreate in MainApplication.java and I get

java.lang.RuntimeException: Unable to create application com.acuityscheduling.app.android.MainApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.instabug.library.settings.a.b(int)' on a null object reference

btw here's setStatusBarColor on my end:

public void setStatusBarColor(int var1) {
        a.b().b(var1);
}

(because I don't have java sources for that file)

from instabug-react-native.

SudoPlz avatar SudoPlz commented on July 19, 2024

Ok I ran this code in createAdditionalReactPackages and it worked.. But yeah, it's in light theme mode.

from instabug-react-native.

lock avatar lock commented on July 19, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from instabug-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.