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

Add ability to set navigation bar color #64

Open
olegyablokov opened this issue Nov 19, 2020 · 1 comment
Open

Add ability to set navigation bar color #64

olegyablokov opened this issue Nov 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@olegyablokov
Copy link

Hi! Could we add an ability to set navigation bar color for phones that support it?

@olegyablokov olegyablokov added the enhancement New feature or request label Nov 19, 2020
@InsaneDoggo
Copy link

You can try to overwrite dialog's style (just declare them in your styles.xml with names same as in original)

Example from my case:

<style name="ImageViewerDialog.Default" parent="android:Theme.Translucent.NoTitleBar">
    <item name="android:statusBarColor">#000</item>
    <item name="android:windowAnimationStyle">@style/ImageViewerDialog.Animation</item>
</style>

<style name="ImageViewerDialog.NoStatusBar" parent="android:Theme.Translucent.NoTitleBar">
    <item name="android:statusBarColor">#000</item>
    <item name="android:windowAnimationStyle">@style/ImageViewerDialog.Animation</item>
</style>

<style name="ImageViewerDialog.Animation">
    <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
</style>

In the lib style is applied here:

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

No branches or pull requests

2 participants