GutterColor icon indicating copy to clipboard operation
GutterColor copied to clipboard

GutterColor conflicts with GitGutter

Open klapec opened this issue 11 years ago • 6 comments

As shown in a screenshot below, GutterColor's color representation gets replaced by GitGutter's icon. Is there any way to have them both appear side by side, if needed?

guttercolor

klapec avatar Feb 24 '14 11:02 klapec

Unfortunately not, this is a limitation of Sublime I'm afraid.

Edit: On second thoughts, it may be possible — although untested — to see if there is a GitGutter mark already in place, then overlay it somehow onto the Gutter Color icon.

jbrooksuk avatar Feb 24 '14 14:02 jbrooksuk

Similar thing happens with VCS Gutter. Color overrides the VCS Gutter image.

tbow avatar Feb 24 '14 22:02 tbow

it would be nice if it could merge both images, for example instead of drawing color circle try to use *gutter image and draw 2px color border around it.

4ndrej avatar Feb 26 '14 15:02 4ndrej

Not sure if it could happen, but I'd love to have the ability to increase the gutter width in order to allow for both GitGutter and GutterColor to show up side by side. Guessing that'd be a Sublime issue, though.

meetmicah avatar Apr 23 '14 14:04 meetmicah

This is a limitation on Sublime's half I'm afraid.

jbrooksuk avatar Apr 23 '14 16:04 jbrooksuk

For GitGutter, it wouldn't be terribly hard to check the defined regions; they only use 5 region keys to add icons. Maybe we could attach a scan to post_window_command(window, 'git_gutter')?

Not exactly sure how to best composite the icons though. My instinct is to have black and white versions to place in the center of our circle, choosing the more contrastive one? But if we end up supporting more plugins, it's kind of silly to keep adding our own versions of their icons...

Also I wonder if the icon overriding is a first-come, first-served thing, or if it is choosing the first alphabetical region ("git_gutter" < "gutter_color" < "vcs_gutter"), or what?

tdhsmith avatar Aug 12 '14 18:08 tdhsmith