Closed Bug 933215 Opened 11 years ago Closed 10 years ago

Tiny scrollbars using the Dark Theme on Mac in the Source Editor with CodeMirror

Categories

(DevTools :: Source Editor, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rcampbell, Unassigned)

Details

Attachments

(2 files)

Attached image Light Theme
Scrollbars look normal (in debugger's source view) with Light Theme selected. BUT! with the Dark Theme...

they tiny.

(see soon-to-be attached screens)
Attached image Dark Theme They Tiny!
Meh. OSX is not supposed to use non-native floating scrollbars.
Only if you have floating scrollbars enabled.
The scrollbars are also completely missing on Windows (Win 7 x64) in the Debugger, Style Editor, and Network panels when using CodeMirror with the Dark Theme.  When using the Light Theme, the scrollbars are there, but they are the system default ones rather than the floating ones.

The Inspector panel is using the floating scrollbar with the Dark Theme, but it isn't as small as it is in Rob's screenshot.
Trevor, I think we're already working on the issue you're experiencing. See bug 931041.

Brian, wanna take this bug? :)
Flags: needinfo?(bgrinstead)
Priority: -- → P3
Just a note here. What Rob is experiencing is not an issue, but the feature by design. The fact that Mac Book Pro has retina display, 8 px is waaaay small of a width. I think we should increase the width to 16 px overall on all OS..
(In reply to Girish Sharma [:Optimizer] from comment #6)
> Just a note here. What Rob is experiencing is not an issue, but the feature
> by design. The fact that Mac Book Pro has retina display, 8 px is waaaay
> small of a width.

Retina display doesn't change anything. The size is the same on a normal display and a retina display.

> I think we should increase the width to 16 px overall on
> all OS..

Why not. 12px maybe. We could use: nsIDOMWindowUtils.getScrollbarSize()
(In reply to Paul Rouget [:paul] from comment #7)
> (In reply to Girish Sharma [:Optimizer] from comment #6)
> > Just a note here. What Rob is experiencing is not an issue, but the feature
> > by design. The fact that Mac Book Pro has retina display, 8 px is waaaay
> > small of a width.
> 
> Retina display doesn't change anything. The size is the same on a normal
> display and a retina display.

Sure, size in pixel is same, but size in mm is different as the dpi is high.

> > I think we should increase the width to 16 px overall on
> > all OS..
> 
> Why not. 12px maybe. We could use: nsIDOMWindowUtils.getScrollbarSize()

12 is also good.
(In reply to Girish Sharma [:Optimizer] from comment #8)
> (In reply to Paul Rouget [:paul] from comment #7)
> > (In reply to Girish Sharma [:Optimizer] from comment #6)
> > > Just a note here. What Rob is experiencing is not an issue, but the feature
> > > by design. The fact that Mac Book Pro has retina display, 8 px is waaaay
> > > small of a width.
> > 
> > Retina display doesn't change anything. The size is the same on a normal
> > display and a retina display.
> 
> Sure, size in pixel is same, but size in mm is different as the dpi is high.

No. Size in mm is the same. Size in physical pixel is double.

On normal display, the size is 8 physical pixels.
On retina display, the size is 16 physical pixels.
This should be resolved by Bug 931041, correct?
Depends on: 931041
Flags: needinfo?(bgrinstead)
(In reply to Brian Grinstead [:bgrins] from comment #10)
> This should be resolved by Bug 931041, correct?

No, that bug is that the scrollbars are totally missing
This bug is that when they are present, the width is very small.

I think we all are agreeing on 12px as the width of the scrollbars ?
No longer depends on: 931041
So this is not CodeMirror related?  We are just wanting to make the floating scrollbars bigger on Mac?
Yes, and on every OS.
For reference, here are the current sizes of floating scrollbars: 

8px on OSX: https://mxr.mozilla.org/mozilla-central/source/browser/themes/osx/devtools/floating-scrollbars.css

10px on Linux: https://mxr.mozilla.org/mozilla-central/source/browser/themes/linux/devtools/floating-scrollbars.css

10px on Windows: https://mxr.mozilla.org/mozilla-central/source/browser/themes/windows/devtools/floating-scrollbars.css.

I can't ever figure out how to see the floating scrollbars, or else I would check and send screenshots of different sizes - I just don't see them.

Further, I'm pretty sure (but not positive) that the screenshot robcee sent in attachment 825264 [details] have the native scrollbars.  I just don't really know enough about this to make the changes.  Is there more information somewhere about floating vs. non floating scrollbars, when they are active, and how to enable them?
On Mac, if you can disable native overlaying scrollbars and somehow shift back to the scrollbars of 10.6 osx, you can see the floating scrollbars in action in dark theme
I *think* this is resolved now ( except on OS X 10.10 Beta 1, see bug 1044258 )
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: