-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Fix scrollbar overlapping icons in the toolbar container on some devices #411
Conversation
Does it also work if you set it to some semi-transparent color? A grey scroll bar may look out of place, depending on the keyboard background color. @RHJihan does this fix the scrollbar placement issue for you? |
Any color should work but do you have anything in mind? I chose grey because it was what looked closest to the default scrollbar used on pixel devices. I tried some of the ones that looked semi-transparent but they are usually not visible on either light or black themes. |
Yes, it solves the issue. |
Maybe |
I think only colors in colors.xml can be used. As far as I can tell |
It works if I set it programmatically but it is almost invisible with the black theme. I don't mind using it though. |
Good news. Perhaps you could try something like this in the Colors.kt file: SCROLLBAR_THUMB -> if (isDarkColor(background)) Color.WHITE else doubleAdjustedBackground Edit: Not in the DynamicColors class; I think this class will be able to use |
I am not sure about setting it programmatically because |
That's what I thought. Have you tried this? |
I did not try it but it seems unnecessarily complex for what can be a simple fix. If grey is not suitable then a different color can be added to |
I couldn't agree more. |
Definitely a transparent color, as mentioned. Maybe grey or dark grey is ok.
The pixel device scrollbar is always grey? imo that looks really ugly when using a colored keyboard background. On LineageOS 16 it appears to be some transparent grey, so the scroll bar is just a little darker than the background. |
Is this good? |
I guess that's ok... |
This PR aims to fix issue #354.
This PR forces some devices to use the normal scrollbar with the
color/almost_background
(which looks similar to the scrollbar in pixel devices).