Closed
Bug 1460209
Opened 7 years ago
Closed 7 years ago
Polish dark theme for the application panel
Categories
(DevTools :: Application Panel, enhancement)
DevTools
Application Panel
Tracking
(firefox62 fixed)
RESOLVED
FIXED
Firefox 62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: ladybenko, Assigned: jdescottes)
References
Details
Attachments
(1 file)
At the moment, the dark theme isn't as readable (i.e. links, no workers screen, etc.) as the light theme for the application panel. We should fix this.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
Current patch fixes the readability of links. Couldn't find a clear pattern for disabled links in devtools, but reduced opacity seemed to be used in some places (style editor, memory panel).
Temporarily re-added the disabled class on the debug link while we wait on Bug 1464354.
Assignee | ||
Comment 3•7 years ago
|
||
Some screenshots of the current patch: https://docs.google.com/document/d/14v3oQEAy8-Dz_R9pjMe_ajj-DmVkFH1hxrsng3FFwbg/edit?usp=sharing
Assignee | ||
Comment 4•7 years ago
|
||
Victoria: what is your opinion on disabled links?
We used to grey them out, but we don't have a good theme variable for this. Here I used:
- --theme-highlight-blue (--blue-55 in light theme, #75BFFF in dark theme) when enabled
- opacity: 0.5 when disabled
Flags: needinfo?(victoria)
Reporter | ||
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8980530 [details]
Bug 1460209 - Use theme colors for links in application panel;
https://reviewboard.mozilla.org/r/246688/#review253306
Thanks, the new blue is definitely more readable! I just have a minor comment about some class, and it's simple enough that I don't think it needs further review
::: devtools/client/application/src/components/Worker.js:127
(Diff revision 1)
> },
> Strings.GetStringFromName("unregister"))
> : null;
>
> - const debugLinkDisabled = this.isRunning() ? "" : "worker__debug-link--disabled";
> + const debugLinkDisabled = this.isRunning() ? "" :
> + "worker__debug-link--disabled disabled";
We shouldn't need two classes here to set a link as disabled.
`.worker__debug-link--disabled` doesn't have any style rules associated, so I'd suggest to use just `.disabled` here.
The rationale is that we might have other disabled links in then panel, and that's why we have the `.disabled` class for links. If we had a preprocessor we could just have the `.disabled` styles as a mixin an import it in every component that needs disabled links –and thus reuse code– but it's not the case here.
Attachment #8980530 -
Flags: review?(balbeza) → review+
Comment hidden (mozreview-request) |
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a31957c18991
Use theme colors for links in application panel;r=ladybenko
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Comment 10•7 years ago
|
||
Hi Julian, thanks for the screenshots. This disabled link styling looks great! Very similar to the Photon guidelines for disabled buttons https://design.firefox.com/photon/components/buttons.html#behaviours
Flags: needinfo?(victoria)
Assignee | ||
Comment 11•7 years ago
|
||
Thanks for the feedback and for linking to the photon styleguide, I should check it more regularly :)
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•