Closed
Bug 1416363
Opened 7 years ago
Closed 6 years ago
Replace the XUL colorpicker widget with input[type=color]
Categories
(Toolkit :: UI Widgets, task, P5)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla64
People
(Reporter: bgrins, Assigned: ntim)
References
(Regressed 1 open bug)
Details
(Whiteboard: [xbl-flatten-inheritance])
Attachments
(6 files)
There's an empty XBL binding for 'colorpickertile':
https://dxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/colorpicker.xml#558
https://dxr.mozilla.org/mozilla-central/source/toolkit/content/xul.css#926
https://dxr.mozilla.org/mozilla-central/source/accessible/xul/XULColorPickerAccessible.cpp
It's only bound to images with the .colorpickertile class, and is empty except for setting [role="xul:colorpickertile"]. I suspect that we can copy the role attribute onto each image instead, but we'll need to confirm that the role attribute on a plain XUL image with no XBL is overriding the image role set by Bug 1403231.
You can see these by opening about:preferences, going to "Fonts and Colors" and clicking the "Colors" button.
Updated•7 years ago
|
status-firefox57:
--- → wontfix
status-firefox58:
--- → wontfix
status-firefox59:
--- → fix-optional
Priority: -- → P5
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ntim.bugs
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
The attached patch works, except for bug 1429248, which needs to be fixed beforehand.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
The commit can be more appropriated named "remove XUL Color Picker and replace it with OS Color Picker widget" :)
Reporter | ||
Comment 7•7 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (please needinfo) from comment #6)
> The commit can be more appropriated named "remove XUL Color Picker and
> replace it with OS Color Picker widget" :)
Indeed. :ntim, can you please check with product / UX about if this is what we want in the preferences UI before requesting code review? In particular we'll lose the ability to specify a set of colors in a palette unless/until we implement the list attr (bug 960984)
See Also: → 960984
Assignee | ||
Comment 8•7 years ago
|
||
Hi Tina,
I am looking to replace the current colorpicker UI with color tiles to choose from, in the Fonts & Colors > Colors section; with a colorpicker that just brings up the native colorpicker.
Would that change be ok ?
Flags: needinfo?(thsieh)
Assignee | ||
Comment 9•7 years ago
|
||
Assignee | ||
Comment 10•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(mwalkington)
Comment 11•7 years ago
|
||
Re-directing question to Michelle, who is providing oversight on Preferences
Flags: needinfo?(mwalkington) → needinfo?(mheubusch)
Comment 12•7 years ago
|
||
mozreview-review |
Comment on attachment 8941254 [details]
Bug 1416363 - Simplify colorpicker bindings.
https://reviewboard.mozilla.org/r/211530/#review228054
::: accessible/base/nsAccessibilityService.cpp:1489
(Diff revision 4)
> accessible = new XULButtonAccessible(aContent, aDoc);
>
> } else if (role.EqualsLiteral("xul:checkbox")) {
> accessible = new XULCheckboxAccessible(aContent, aDoc);
>
> } else if (role.EqualsLiteral("xul:colorpicker")) {
Given that you have removed `role="xul:colorpicker"` in the binding, should this moved to XULMap.h instead?
Comment 13•7 years ago
|
||
(In reply to Tim Nguyen :ntim from comment #8)
> Hi Tina,
>
> I am looking to replace the current colorpicker UI with color tiles to
> choose from, in the Fonts & Colors > Colors section; with a colorpicker that
> just brings up the native colorpicker.
>
> Would that change be ok ?
Hello Tim,
I'm going to clear the needinfo for now since Michelle is on the needinfo list :)
Flags: needinfo?(thsieh)
Reporter | ||
Comment 14•7 years ago
|
||
Renaming this to reflect reality, since colorpickertile is now gone as of Bug 1442029
Depends on: 1442029
Summary: Remove the colorpickertile binding, which is used only for setting a role → Consider replacing the XUL colorpicker widget with input[type=color]
Comment 15•7 years ago
|
||
The other place where XUL color picker is used is the "select background color" UI in the "Set desktop background" dialog. You can find it by right click on an image and select "Set As Desktop Background...".
It however only shows up on Windows.
Assignee | ||
Comment 17•6 years ago
|
||
Hi Philipp,
Could you please answer comment 8 or forward to someone who could ?
Flags: needinfo?(philipp)
Comment 18•6 years ago
|
||
Generally this should be fine.
What does this look like on Windows 7 and 10?
Flags: needinfo?(philipp)
Assignee | ||
Comment 19•6 years ago
|
||
(In reply to (Currently slow to respond) Philipp Sackl [:phlsa] (Firefox UX) please use needinfo from comment #18)
> Generally this should be fine.
> What does this look like on Windows 7 and 10?
It brings up the native windows color picker, which should look like this screenshot.
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(philipp)
Comment 20•6 years ago
|
||
Ah, I'm only now realizing that this is the behavior we already have on the web, and that this change will only affect internal pages like about:preferences.
In that case, please go ahead!
Flags: needinfo?(philipp)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → ntim.bugs
Reporter | ||
Comment 22•6 years ago
|
||
(CCing some TB folks). FYI we are planning to replace xul <colorpicker> with <input type="color">. Looks like it's used in a number of places in TB (https://searchfox.org/comm-central/search?q=%3Ccolorpicker&path=) so if you want to keep the current UI you'll need to restore the current impl. FWIW I don't see any red flags that would prevent it from being migrated to a CE: https://github.com/bgrins/xbl-analysis/blob/34c2f839571a2f451b6dc2144c22ce7adcc5d92c/elements/generated/Colorpicker.js.
Comment 23•6 years ago
|
||
Thanks, I filed bug 1495808 for the TB work.
Assignee | ||
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
|
||
Depends on D7575
Assignee | ||
Comment 26•6 years ago
|
||
Assignee | ||
Comment 27•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 years ago
|
Summary: Consider replacing the XUL colorpicker widget with input[type=color] → Replace the XUL colorpicker widget with input[type=color]
Comment 28•6 years ago
|
||
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7335b0ef725a
Replace existing usages of XUL colorpicker with input[type='color']. r=jaws
Comment 29•6 years ago
|
||
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/933956374571
Remove colorpicker binding and related code. r=bgrins,surkov
Comment 30•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7335b0ef725a
https://hg.mozilla.org/mozilla-central/rev/933956374571
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•