Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Conversation

@peterflynn
Copy link
Member

  • Reduce width of scrollbar tickmarks to match new, narrower custom-themed scrollbars from Custom scrollbars for Windows based on win 8 #6305 (should also look better on Mac, where the tickmarks were already too wide)
  • Fix bug where showing/hiding a bottom panel didn't update the positioning of scrollbar tickmarks
  • Results that span multiple tokens showed little orange dots in the text highlight between tokens (due to repeated corner rounding). There are still faint lines between tokens (due to box-shadow), but they're much fainter.

- Reduce width of scrollbar tickmarks to match new, narrower custom-themed
scrollbars (should also look better on Mac, where the tickmarks were already
too wide)
- Fix bug where showing/hiding a bottom panel didn't update the positioning
of scrollbar tickmarks
- Results that span multiple tokens showed little orange dots in the text
highlight between tokens (due to repeated corner rounding). There are still
faint lines between tokens (due to box-shadow), but they're much fainter.
@ghost ghost assigned redmunds Jan 14, 2014
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good width for my Win7 system, but not quite right for Mac 10.8. What do you think about having platform-specific widths?

Actually, should probably specify a non-platform-specific width for Win (which would also be picked up by Linux), and then override for Mac.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redmunds Hmm, I tested on my 10.8 MBP and this width looked good. Is it too wide on your machine? Not wide enough? Screenshot might be helpful (I can capture one on my machine later to compare, too).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And fwiw this looked like a good size on my Ubuntu VM too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before your change, tickmarks were 1(?) pixel wider than scrollbar. With your change, they fit inside scrollbar with 3(?) pixels to spare. Would be nice if they were exact scrollbar width like on Win.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redmunds Crud, I think the width depends on whether you have a mouse plugged in. With no mouse, it's far narrower. I think there is some fancy measuring logic in CM that tries to detect which case we're in. We could duplicate that here...

But for the time being (in the interest of getting the Win width fix merged this sprint), I wonder if we should just continue doing what master does -- err on one side or the other. I don't feel strongly which one; master assumes there is a mouse, this PR assumes trackpad. Which do you think is better for now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter to me -- I mentioned it in case it was an easy fix.

@redmunds
Copy link
Contributor

I'm not sure how to reproduce the 2nd and 3rd bullets in the description, so not sure about those.

@peterflynn
Copy link
Member Author

You can repro the 2nd bullet by getting some Find in Files results, then doing a regular find (causing tickmarks to appear), then closing the Find in Files panel. Or similar repro steps with the Markdown Preview bottom panel, etc.

@peterflynn
Copy link
Member Author

For the 3rd bullet just do a search that matches across more than one CM token. E.g. an identifier plus a punctuation/delimiter char. Example:

Before fix
gaps-master

With fix
gaps-with-fix

Note the little red dots around the "." in the selected result (before the fix).

@redmunds
Copy link
Contributor

Here's a Mac screenshot:

screen shot 2014-01-14 at 5 23 52 pm

@redmunds
Copy link
Contributor

@peterflynn Done with review. Unless you have any further changes you want to make, I am ready to merge this. Let me know.

@peterflynn
Copy link
Member Author

@redmunds If you're ok merging it as-is that works for me. I will look into scrollbar measuring for next sprint as a follow-up improvement.

@redmunds
Copy link
Contributor

Merging.

redmunds added a commit that referenced this pull request Jan 15, 2014
Fix several visual issues with find result highlighting:
@redmunds redmunds merged commit bcff103 into master Jan 15, 2014
@redmunds redmunds deleted the pflynn/find-highlighting-tweaks branch January 15, 2014 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants