-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 not always being on top #20665
base: main
Are you sure you want to change the base?
Conversation
…outline is no longer above the scrollbar. This should fix zed-industries#19875
@@ -2982,8 +2982,9 @@ impl ProjectPanel { | |||
.right_1() | |||
.top_1() | |||
.bottom_1() | |||
.w(px(12.)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like an unnecessary drive-by change? /cc @iamnbutler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could be solved in a different way, but i don't know how, this is my first contribution to this project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, this definitely looks better, though I think we should find out where that background originates from and trim that instead. :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please post the screenshots of the state before and after.
The blend function is used to blend the scrollbar color (scrollbar_thumb_background) on top of the background color (surface background). This way the color of the scrollbar stays the same, but it is no longer transparent, so that the blue border of selected files can't shine through and appear as if it was above the scrollbar.
Set the elevation of the scrollbar to 1 borderless, so that the blue outline is no longer above the scrollbar.
Closes #19875
Release Notes: