-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Scrollbars are not dark in dark theme #8982
Comments
They are still dark for me, using Brackets 43 from master (60ce7af). Are you using the default dark theme? |
I am. This in OS X, and I have the "show scroll bars" system preference set to "automatically based on mouse or trackpad" rather than the default "when scrolling", so I am getting more traditional scrollbars than the fancy OS X Lion ones. If I reset the setting, then I get the dark scrollbars, but at the expense of not having the style of scrollbar I prefer in every other app. However, even with this option enabled, custom scrollbar styles still work in Chrome and Safari on pages that use them, so I'm not sure why they wouldn't work in Brackets? |
@larz0 and @MiguelCastillo may have more thoughts on this, but my guess would be that Brackets' does not style the "special" scrollbars. |
According to #8384 (comment), the Brackets (dark) style is only applied if a mouse is plugged in, in order to not change the behaviour. |
@marcelgerber that's correct. We style scrollbars when there is a mouse/trackpad device. The styling we apply matches the system's scrollbars though. |
@MiguelCastillo I see the same as @jonrimmer with the same scrollbar settings |
@pthiess Do you see the "old" scrollbars when scrolling anywhere on the document? I only see the bigger scrollbars when I mouse pointer in right on the scrollbar gutter and I scroll, which is the same I see in chrome. |
@MiguelCastillo it seems to appear a little bit random on first use of a view only - i switched to mainline, not sure if split view has any impact here. |
@pthiess Gotcha. Let me try to reproduce it targeting initial editor load then... I haven't been able to reporoduce this behavior under 'normal' use |
I found that if the mouse is plugged in the macbook, the scrollbar will appear gray with the white background just like the picture above. When I remove the mouse, it disappears and appears when I scrolling with trackpad. |
Possibly related #10175. |
@yzwind We have improved this behavior in 1.3. Can you give it a spin? |
@nethip Still have this issue in 1.3. |
@nethip I get light colored scrollbars in a dark UI theme, too. It looks out of place. |
Is there a way to create custom CSS/LESS to fix this? |
Paste this in the theme CSS file or using Brackets Custom CSS Injector ::-webkit-scrollbar { ::-webkit-scrollbar-thumb { .CodeMirror-hscrollbar { |
Many thanks for the tip! 👍 On my OSX, using Brackets 1.7 (build 1.7.0-16898 (release b0a363b)), hover, focus, and active states doesn't have any effect. However, there were two additional white regions that I had to make them dark. Having this, here is the result that I am currently satisfied with it: ::-webkit-scrollbar {
width: 10px;
background-color: transparent;
}
::-webkit-scrollbar-thumb {
width: 10px;
box-shadow: 0 0 0 12px rgb(59, 59, 59) inset;
}
.CodeMirror-hscrollbar {
height: 10px;
}
.platform-mac .CodeMirror-gutter-filler,
.platform-mac .CodeMirror-scrollbar-filler {
background-color: transparent;
background-image: none;
} |
moving it out to 1.9 milestone as we are closer to the release of 1.8 and will need more time for this issue. |
We are looking into this issue. @deartet Can you please confirm couple of things? First, which OSX version you see this? Second what's the OS level scroll configuration? |
I had the same Issue, Go to your Mac System Preferences, under general, change-- show scroll bar to When Scrolling, This fixed it for me. |
Thanks, @allenlejeune thist did the trick for me! |
They're light:
The text was updated successfully, but these errors were encountered: