This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 420835 - DnDAddon - Replace Green with a nicer color
Summary: DnDAddon - Replace Green with a nicer color
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.4 M4   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 421072 (view as bug list)
Depends on: 419016
Blocks: 393454
  Show dependency tree
 
Reported: 2013-10-31 17:04 EDT by Lars Vogel CLA
Modified: 2013-12-12 06:30 EST (History)
6 users (show)

See Also:


Attachments
screenshot of DND as it looks on Linux (green) (68.67 KB, image/png)
2013-11-02 12:42 EDT, Robin Stocker CLA
no flags Details
Red feedback overlay (150.95 KB, image/png)
2013-11-02 14:10 EDT, Nobody - feel free to take it CLA
no flags Details
Drag with selection color on Windows 7 (21.39 KB, image/png)
2013-11-04 10:10 EST, Dani Megert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2013-10-31 17:04:54 EDT
As discussed with several people on EclipseCon Europe we should use a better color color for DnD of Views and the toolbar.

@Eric, can you give a tip where this color is defined?
Comment 1 Dani Megert CLA 2013-11-01 08:07:42 EDT
+1! See 393454 comment 0.
Comment 2 Lars Vogel CLA 2013-11-01 08:50:56 EDT
Information for people which would like to help:

org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon from the org.eclipse.e4.ui.workbench.addons.swt plug-in would be the starting point. The corresponding Git repo is git://git.eclipse.org/gitroot/platform/eclipse.platform.ui.git 

See http://www.vogella.com/articles/Gerrit/article.html#eclipsegerritcontribution for the description how to clone the Eclipse UI platform Git repo and how to provide a Gerrit patch.
Comment 3 Nobody - feel free to take it CLA 2013-11-01 10:05:48 EDT
I think for Kepler the default color is White. At least for my Kepler it is. Also the color is defined in DnDManager#hostElement but I'm not completely sure about this one.
Comment 4 Robin Stocker CLA 2013-11-02 12:42:11 EDT
Created attachment 237148 [details]
screenshot of DND as it looks on Linux (green)

(In reply to Sopot Cela from comment #3)
> I think for Kepler the default color is White. At least for my Kepler it is.
> Also the color is defined in DnDManager#hostElement but I'm not completely
> sure about this one.

It's not white here, see the screenshot.
Comment 5 Nobody - feel free to take it CLA 2013-11-02 13:45:42 EDT
(In reply to Robin Stocker from comment #4)
> Created attachment 237148 [details]
> screenshot of DND as it looks on Linux (green)
> 
> (In reply to Sopot Cela from comment #3)
> > I think for Kepler the default color is White. At least for my Kepler it is.
> > Also the color is defined in DnDManager#hostElement but I'm not completely
> > sure about this one.
> 
> It's not white here, see the screenshot.

Yeah I completely forgot I always install a custom theme https://github.com/jeeeyul/eclipse-themes .
Comment 6 Nobody - feel free to take it CLA 2013-11-02 14:10:49 EDT
Created attachment 237151 [details]
Red feedback overlay

Turns out I was wrong on both remarks. 

The color of the drag feedback is set in the SplitFeedbackOverlay class in the setFeedback method. In that method there is a reference to the "DragFeedback" css element which is defined in the e4_basestyle.css in the org.eclipse.platform project. It's pretty trivial to change so as long as we settle for a color patch is ready. I attached a modified screenshot. 

Also the toolbar's drag color is defined in TrimDropAgent.
Comment 7 Robin Stocker CLA 2013-11-02 17:26:27 EDT
How about the selection color (e.g. blue on most platforms, or orange on Ubuntu):

.DragFeedback {
    background-color: COLOR-LIST-SELECTION; 
}

In addition to this, we could make it half-transparent using `feedbackShell.setAlpha(127);` in SplitFeedbackOverlay.

TrimDropAgent can not be made transparent, right?
Comment 8 Lars Vogel CLA 2013-11-03 14:30:12 EST
> .DragFeedback {
>     background-color: COLOR-LIST-SELECTION; 
> }

Gerrit review to change the DnDColor to COLOR-LIST-SELECTION, thanks Robin and Sopot.

https://git.eclipse.org/r/18015
Comment 9 Dani Megert CLA 2013-11-04 10:00:33 EST
(In reply to Lars Vogel from comment #8)
> > .DragFeedback {
> >     background-color: COLOR-LIST-SELECTION; 
> > }
> 
> Gerrit review to change the DnDColor to COLOR-LIST-SELECTION, thanks Robin
> and Sopot.
> 
> https://git.eclipse.org/r/18015

This is better than the green but - at least the bright blue on Windows 7 - is still way too glaring.
Comment 10 Lars Vogel CLA 2013-11-04 10:04:42 EST
> > https://git.eclipse.org/r/18015
> 
> This is better than the green but - at least the bright blue on Windows 7 -
> is still way too glaring.

Could you attach a screenshot how it looks on Windows? I have no machine to test this on for MS.
Comment 11 Dani Megert CLA 2013-11-04 10:10:33 EST
Created attachment 237171 [details]
Drag with selection color on Windows 7
Comment 12 Nobody - feel free to take it CLA 2013-11-04 10:20:15 EST
How about a simple gray value?
Comment 13 Dani Megert CLA 2013-11-04 10:23:42 EST
(In reply to Sopot Cela from comment #12)
> How about a simple gray value?

Yes, similar to 3.x.
Comment 14 Lars Vogel CLA 2013-11-04 10:36:48 EST
(In reply to Dani Megert from comment #13)
> (In reply to Sopot Cela from comment #12)
> > How about a simple gray value?

Feel free to push an update to the review. Use the same Gerrit ID to update the existing one.
Comment 15 Robin Stocker CLA 2013-11-04 10:46:02 EST
(In reply to Sopot Cela from comment #12)
> How about a simple gray value?

Yes, and make it a bit transparent, see comment 7.
Comment 16 Lars Vogel CLA 2013-11-04 10:50:50 EST
(In reply to Robin Stocker from comment #15)
> (In reply to Sopot Cela from comment #12)
> > How about a simple gray value?
> 
> Yes, and make it a bit transparent, see comment 7.

I updated the review using light gray. Looks good on Ubuntu, can someone test on Windows? The SWT.COLOR-GRAY constant looked a bit strong IMHO.

I think with "light gray" transparency would be an overkill, but I'm curious to hear other options.
Comment 17 Eric Moffatt CLA 2013-11-04 10:57:19 EST
I like the example that Dani posted, at least for the 'color' themes...

IMO, 'gray' is pretty 80's...;-)
Comment 18 Dani Megert CLA 2013-11-04 11:01:58 EST
(In reply to Eric Moffatt from comment #17)
> I like the example that Dani posted, at least for the 'color' themes...

Well, that's a bad example actually. It is too eye-catching for a DnD feedback,and, at least on Windows 7, it is not the same as the native DnD feedback you see when e.g. dragging files: there you also get the same gray,pixelled look as we had in 3.x.
Comment 19 Lars Vogel CLA 2013-11-04 11:03:55 EST
(In reply to Dani Megert from comment #18)
> (In reply to Eric Moffatt from comment #17)
> > I like the example that Dani posted, at least for the 'color' themes...
> 
> Well, that's a bad example actually. It is too eye-catching for a DnD
> feedback,and, at least on Windows 7, it is not the same as the native DnD
> feedback you see when e.g. dragging files: there you also get the same
> gray,pixelled look as we had in 3.x.

(In reply to Eric Moffatt from comment #17)
> I like the example that Dani posted, at least for the 'color' themes...
> 
> IMO, 'gray' is pretty 80's...;-)

I agree with Dani that the blue is pretty ugly and strong on Windows.

Dani, what do you think about the light gray?
Comment 20 Dani Megert CLA 2013-11-05 08:17:17 EST
(In reply to Lars Vogel from comment #19)
> (In reply to Dani Megert from comment #18)
> > (In reply to Eric Moffatt from comment #17)
> > > I like the example that Dani posted, at least for the 'color' themes...
> > 
> > Well, that's a bad example actually. It is too eye-catching for a DnD
> > feedback,and, at least on Windows 7, it is not the same as the native DnD
> > feedback you see when e.g. dragging files: there you also get the same
> > gray,pixelled look as we had in 3.x.
> 
> (In reply to Eric Moffatt from comment #17)
> > I like the example that Dani posted, at least for the 'color' themes...
> > 
> > IMO, 'gray' is pretty 80's...;-)
> 
> I agree with Dani that the blue is pretty ugly and strong on Windows.
> 
> Dani, what do you think about the light gray?

See my comment in the Gerrit change.
Comment 21 Lars Vogel CLA 2013-11-05 08:26:55 EST
> See my comment in the Gerrit change.

Thanks. Gerrit review adjust to your comments.
Comment 22 Dani Megert CLA 2013-11-05 08:28:45 EST
(In reply to Lars Vogel from comment #21)
> > See my comment in the Gerrit change.
> 
> Thanks. Gerrit review adjust to your comments.

Thanks Lars! Submitted with http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=df5cf92b730772c5ca45868d2477050c11cbb8f2
Comment 23 Lars Vogel CLA 2013-11-05 08:30:38 EST
> Thanks Lars! Submitted with
> http://git.eclipse.org/c/platform/eclipse.platform.git/commit/
> ?id=df5cf92b730772c5ca45868d2477050c11cbb8f2

Thanks you Dani for the merge and the active feedback on the suggest change. It is just a small change but I think our users will like the new DnD color.
Comment 24 Nobody - feel free to take it CLA 2013-11-05 08:43:29 EST
While this is still hot can we also change the color of toolbar drag? A (light) gray would make sense also I think. Seeing plain green when you start the drag doesn't look good to my eye at least.
Comment 25 Dani Megert CLA 2013-11-05 08:55:46 EST
(In reply to Sopot Cela from comment #24)
> While this is still hot can we also change the color of toolbar drag? A
> (light) gray would make sense also I think. Seeing plain green when you
> start the drag doesn't look good to my eye at least.

Please file a new bug. This is easier to track.
Comment 26 Dani Megert CLA 2013-11-05 08:56:19 EST
.
Comment 27 Dani Megert CLA 2013-11-05 09:00:45 EST
(In reply to Dani Megert from comment #25)
> (In reply to Sopot Cela from comment #24)
> > While this is still hot can we also change the color of toolbar drag? A
> > (light) gray would make sense also I think. Seeing plain green when you
> > start the drag doesn't look good to my eye at least.
> 
> Please file a new bug. This is easier to track.

Oh, I see, this is about the same "green" issue.

And Lars already provided a patch that I submitted:
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b2eb153ae57dd6cb437dc03921ce0ee23affdf70
Comment 28 Nobody - feel free to take it CLA 2013-11-05 09:02:26 EST
My bad then. Thanks Lars.
Comment 29 Lars Vogel CLA 2013-11-05 09:03:49 EST
*** Bug 421072 has been marked as a duplicate of this bug. ***
Comment 30 Lars Vogel CLA 2013-12-12 06:30:07 EST
Verified in Build id: I20131211-2000