Closed Bug 1207565 Opened 9 years ago Closed 9 years ago

[Ubuntu] Make tab sound visual indicator more visible

Categories

(Firefox :: Theme, defect)

All
Linux
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: adalucinet, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

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
Ehsan, could you have a look to this? Thanks
Flags: needinfo?(ehsan)
Assignee: nobody → ehsan
Flags: needinfo?(ehsan)
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)
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.
(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.
Component: Tabbed Browser → Theme
(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...
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.
Can I just use MenuText without the second part of comment 6 in this bug?
Sure, but file a followup on improving the icon in tabs too?
Flags: needinfo?(jaws)
Of course.
Depends on: 1208760
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+
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.

Attachment

General

Created:
Updated:
Size: