Closed
Bug 1207565
Opened 9 years ago
Closed 9 years ago
[Ubuntu] Make tab sound visual indicator more visible
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: adalucinet, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
5.83 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
Affected platform: Ubuntu. Preconditions: Make sure you have opened several tabs (~16 tabs) so the "List all tabs" button is displayed. 1. Launch Firefox. 2. Open several websites with audio/video content. 3. Click on the "List all tabs" button. Expected result: The tab sound icon is clearly visible in the tabs list drop-down, for the tabs playing audio. Actual result: The tab sound icon appears in the tabs list drop-down, but is barely visible with Ubuntu's default theme. Same issue when a tab with audio/video content is in focus. Please see the following screen recording → https://goo.gl/I5ccWW
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ehsan
Flags: needinfo?(ehsan)
Assignee | ||
Comment 2•9 years ago
|
||
So I can't just use #TabsToolbar[brighttext] in my selector because the brighttext attribute is set based on the color of the toolbar, not that of the menu item. So while using #TabsToolbar[brighttext] would fix this on Linux where the two colors are the same, it would regress it on OS X dev edition which has a dark toolbar and a bright menu item. Jared, what's a better selector to use here?
Flags: needinfo?(jaws)
Comment 3•9 years ago
|
||
I don't think there's a selector available that detects the menu text that's in use. You'd need to write some JS that does essentially what this code: https://dxr.mozilla.org/mozilla-central/rev/f1dffc8682fbba463cb4bb305f293ddcccbc20b4/browser/base/content/browser.js#7920-7952 is doing, and then use that attribute, I think.
Comment 4•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #3) > I don't think there's a selector available that detects the menu text that's > in use. You'd need to write some JS that does essentially what this code: > > https://dxr.mozilla.org/mozilla-central/rev/ > f1dffc8682fbba463cb4bb305f293ddcccbc20b4/browser/base/content/browser. > js#7920-7952 > > is doing, and then use that attribute, I think. Please don't. The SVG itself can just use the MenuText color.
Updated•9 years ago
|
Component: Tabbed Browser → Theme
Comment 5•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #4) > (In reply to :Gijs Kruitbosch from comment #3) > > I don't think there's a selector available that detects the menu text that's > > in use. You'd need to write some JS that does essentially what this code: > > > > https://dxr.mozilla.org/mozilla-central/rev/ > > f1dffc8682fbba463cb4bb305f293ddcccbc20b4/browser/base/content/browser. > > js#7920-7952 > > > > is doing, and then use that attribute, I think. > > Please don't. The SVG itself can just use the MenuText color. Can it? It looks like it has hardcoded colors, and has hover/active states which differ only by color...
Comment 6•9 years ago
|
||
It does have hardcoded color codes, but we have full control over that and can use platform colors as needed. The icon in the tabs menu doesn't have a hover state. For the icon in the tabs we also change the opacity on hover.
Assignee | ||
Comment 7•9 years ago
|
||
Can I just use MenuText without the second part of comment 6 in this bug?
Comment 8•9 years ago
|
||
Sure, but file a followup on improving the icon in tabs too?
Flags: needinfo?(jaws)
Assignee | ||
Comment 9•9 years ago
|
||
Of course.
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8666377 -
Flags: review?(dao)
Comment 11•9 years ago
|
||
Comment on attachment 8666377 [details] [diff] [review] Use the MenuText color for the audio indicator in the all tabs menu Might also make sense to change the icon color when the menu item is active. Unfortunately the text color used there isn't consistent across OSes. -moz-menuhovertext on Windows and Linux, -moz-mac-menutextselect on OS X.
Attachment #8666377 -
Flags: review?(dao) → review+
Comment 13•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/40a416eadddf
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
You need to log in
before you can comment on or make changes to this bug.
Description
•