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

Scrollbar accent color bugfix [#570] #608

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

goforbg
Copy link

@goforbg goforbg commented Apr 9, 2020

The quick fix around for changing the scrollbar color was to use an XML linking to a drawable. However, this couldn't be used as a solution in our case since the drawable XML wouldn't link to a dynamic color code that changes when the user changes the accent-color.

Hence I've created a custom recycler view class that overrides the default drawing of the scrollbar, changing it's color to the color set in settings by accessing "accent_color_preference" with the help of Hawk. Hope this fixes it.

@amarilindra
Copy link

CustomRecyclerView naming is generic. Changing the name to something meaningful is suggested.

LeafPicRecyclerView sounds nice and we can use it throughout the app for better customisation.

@dnldsht
Copy link
Member

dnldsht commented Apr 9, 2020

@Techydevil well done!

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

Successfully merging this pull request may close these issues.

None yet

3 participants