Skip to content

Scrollbar accent color bugfix [#570] - #608

Open
goforbg wants to merge 1 commit into
UnevenSoftware:devfrom
goforbg:dev
Open

goforbg wants to merge 1 commit into
UnevenSoftware:devfrom
goforbg:dev

Conversation

@goforbg

@goforbg goforbg commented Apr 9, 2020

Copy link
Copy Markdown

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
Copy Markdown

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

dnldsht commented Apr 9, 2020

Copy link
Copy Markdown
Member

@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.

3 participants