Scroll bars white in standalone zed #257
Comments
Same on linux
|
I can't seem to reproduce this anymore, so nevermind me, I'm on crack. |
Not seeing this...also on OS X 10.9.2 |
I think this happens because of the different mac/win/linux window themes. The mac theme actually uses the default scrollbars intentionally. This produces 2 different results though because of OS X scrollbar settings. In System preferences->general there is a Show scroll bars setting. I think it defaults to being based on mouse or trackpad use. This means if you use a mouse you'll get the white scrollbars and if you use a trackpad you won't. As for linux, it seems like sometimes on launch the mac theme will briefly load first and the scrollbars will get "stuck". Also all of these observations are from using the chrome version, but I'm guessing it's the same/similar. |
That explains a few things. The question is: can we do anything about it? Can we override these default scrollbars, you seem to suggest we can't? |
We can use custom scrollbars no matter what. Just put all of the ::webkit-scrollbar css on body instead of body.non_mac in editor.css. That should give consistent scrollbars no matter what. I'm not sure if it's possible to use default OS X scrollbars when using a trackpad and custom ones when using a mouse. If we wanted to keep default OS X scrollbars and use custom scrollbars for linux/win I think we could use an ugly hack to force them to change. Something like the following with some timeouts after the mac/non_mac classes on body are changed.
I think we should just use custom scrollbars no matter what. But I always use a mouse :) |
The text was updated successfully, but these errors were encountered: