Bug 549415 - Improve color picker enablement on text editor preference page
Summary: Improve color picker enablement on text editor preference page
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.12   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.13 M3   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-07-19 04:40 EDT by Mickael Istria CLA
Modified: 2019-07-25 11:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2019-07-19 04:40:20 EDT
When dealing with text editor color, the enablement of the color picker when system color checkbox is on is confusing: it's hard to figure out the widget is disabled, and when disabled, the color is altered (at least on Linux) so we don't get a clear preview of what it is.
Instead of disabling the widget, we could have it always enabled and clickable (to get proper preview and save one click). When changing the color, the system color checkbox would be disabled. It would break the master-slave hierarchy between both widgets without any loss.
Comment 1 Paul Pazderski CLA 2019-07-19 04:46:12 EDT
(In reply to Mickael Istria - away until July 15th from comment #0)
> When dealing with text editor color, the enablement of the color picker when
> system color checkbox is on is confusing: it's hard to figure out the widget
> is disabled, and when disabled, the color is altered (at least on Linux) so
> we don't get a clear preview of what it is.

Same on Windows but imo the disablement state is easy to spot precisely because you cannot clearly see the preview.
Regardless I think your proposal would be better.
Comment 2 Mickael Istria CLA 2019-07-19 05:27:03 EDT
Actually, there is no way to get the "native" color easily for those value, so we cannot have the preview in any case, but still, we can improve the enablement.
Comment 3 Eclipse Genie CLA 2019-07-19 05:52:45 EDT
New Gerrit change created: https://git.eclipse.org/r/146348
Comment 6 Mickael Istria CLA 2019-07-24 02:36:37 EDT
(In reply to Dani Megert from comment #5)
> Causes compile warnings in the build:
> https://download.eclipse.org/eclipse/downloads/drops4/I20190723-1800/
> compilelogs/plugins/org.eclipse.ui.editors_3.11.600.v20190723-1417/@dot.html

Ok, I'll fix it.
Shouldn't we configure prohects so that those warnings are reported as errors in IDE and build? That would decrease theur probability of being submitted and merged.
Comment 7 Eclipse Genie CLA 2019-07-24 09:02:49 EDT
New Gerrit change created: https://git.eclipse.org/r/146554
Comment 9 Dani Megert CLA 2019-07-25 04:09:10 EDT
(In reply to Mickael Istria from comment #6)
> Shouldn't we configure prohects so that those warnings are reported as
> errors in IDE and build? That would decrease theur probability of being
> submitted and merged.
It's a warning in both cases. We won't make every warning an error just that one can better see it.
Comment 10 Mickael Istria CLA 2019-07-25 04:15:29 EDT
(In reply to Dani Megert from comment #9)
> We won't make every warning an error just that
> one can better see it.

Too bad. It would actually be quite profitable for everyone.
Comment 11 Dani Megert CLA 2019-07-25 06:25:45 EDT
(In reply to Mickael Istria from comment #10)
> (In reply to Dani Megert from comment #9)
> > We won't make every warning an error just that
> > one can better see it.
> 
> Too bad. It would actually be quite profitable for everyone.
A more general approach would be if Gerrit gives a -1 if the number of warnings went up, but for that it would also have to compile the code on which the change is based.
Comment 12 Mickael Istria CLA 2019-07-25 06:28:20 EDT
(In reply to Dani Megert from comment #11)
> A more general approach would be if Gerrit gives a -1 if the number of
> warnings went up, but for that it would also have to compile the code on
> which the change is based.

Are the current report about warning making a differential analysis?
Or do they basically report a warning in a way that makes some other committers report them as errors afterwards? If the later, what would be so wrong as reporting them as errors directly in the IDE at dev-time already?
Comment 13 Paul Pazderski CLA 2019-07-25 06:56:48 EDT
(In reply to Mickael Istria from comment #12)
> what would be so wrong as reporting them as errors directly in 
> the IDE at dev-time already?

For me it could be annoying when launching a project with not yet used variables. 
Btw. one of the most annoying settings for one of the platform projects is 'remove unused variables' as save action.
Comment 14 Mickael Istria CLA 2019-07-25 08:30:35 EDT
(In reply to Paul Pazderski from comment #13)
> For me it could be annoying when launching a project with not yet used
> variables. 

Note that I'm not discussing the idea of changing the default in the IDE overall, but more changing this in the project-specific settings of individual Eclipse Platform projects (in the .settings).
Comment 15 Dani Megert CLA 2019-07-25 11:01:45 EDT
(In reply to Paul Pazderski from comment #13)
> (In reply to Mickael Istria from comment #12)
> > what would be so wrong as reporting them as errors directly in 
> > the IDE at dev-time already?
> 
> For me it could be annoying when launching a project with not yet used
> variables.
+2
Comment 16 Dani Megert CLA 2019-07-25 11:02:04 EDT Comment hidden (obsolete)
Comment 17 Dani Megert CLA 2019-07-25 11:04:06 EDT
(In reply to Mickael Istria from comment #14)
> Note that I'm not discussing the idea of changing the default in the IDE
> overall, but more changing this in the project-specific settings of
> individual Eclipse Platform projects (in the .settings).
How would the experience be different for Paul an me working on those projects?