Closed
Bug 1190462
Opened 9 years ago
Closed 9 years ago
[Windows 10] Invisible tabs with "High Contrast White" system theme
Categories
(Firefox :: Theme, defect, P2)
Tracking
()
VERIFIED
FIXED
Firefox 44
People
(Reporter: shorlander, Assigned: Gijs)
References
(Depends on 1 open bug)
Details
(Keywords: regression)
Attachments
(2 files, 2 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
dao
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
If you use the "High Contrast White" system theme the tabs become "invisible" because the white labels and images blend in with the white window color.
Updated•9 years ago
|
Keywords: regression
Updated•9 years ago
|
Priority: -- → P2
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #1)
> What's the desired fix here?
As we discussed on IRC the ideal fix would be using SVG tabs (bug 1068110) and then using the proper color keywords in the UI when it's in High Contrast mode.
Mocked up what it could look like with the four built in themes: http://people.mozilla.org/~shorlander/mockups/Windows-10-High-Contrast/Windows-10-High-Contrast.html
Comment 3•9 years ago
|
||
We'll probably need a less ideal fix for the immediate future.
Blocks: 1192839
Severity: normal → major
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #3)
> We'll probably need a less ideal fix for the immediate future.
I agree. Can we restrict our color changes etc. to the default theme, and does that restore some level of usability for HCM, even if it looks awful?
Comment 5•9 years ago
|
||
Stephen already outlined the desired fix.
For the immediate future, it's hard for me to tell what is technically possible in the short term...
Flags: needinfo?(philipp)
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #4)
> (In reply to Dão Gottwald [:dao] from comment #3)
> > We'll probably need a less ideal fix for the immediate future.
>
> I agree. Can we restrict our color changes etc. to the default theme, and
> does that restore some level of usability for HCM, even if it looks awful?
Not sure what that would look like really.
Comment 7•9 years ago
|
||
How about making the tab stroke and navbar border changes for default theme only ?
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #7)
> How about making the tab stroke and navbar border changes for default theme
> only ?
Yes, this was suggested and discussed already in comment #4 and 6, but we don't know what it'd look like and how well it'd work. If you can create a patch and try build, that would be helpful.
Reporter | ||
Comment 9•9 years ago
|
||
If we switched the tab label color keyword to ButtonText I think it would at least leave everything readable in non-ideal configurations.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 10•9 years ago
|
||
I have a patch here that needs some polish still. Will try to put it up tomorrow.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 11•9 years ago
|
||
Bug 1190462 - Firefox shouldn't be completely unusable in high contrast white on windows 10, r?dao
Attachment #8659291 -
Flags: review?(dao)
Comment 12•9 years ago
|
||
Sorry if I'm confused... Why is background-color: ActiveCaption needed for Win 10 but not 8? Or do we set that for Win 8 in some place that I'm missing?
Comment 13•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #12)
> Sorry if I'm confused... Why is background-color: ActiveCaption needed for
> Win 10 but not 8? Or do we set that for Win 8 in some place that I'm missing?
We only draw the non-native background-color (for the custom caption buttons) on Windows 10.
Assignee | ||
Comment 14•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #12)
> Sorry if I'm confused... Why is background-color: ActiveCaption needed for
> Win 10 but not 8? Or do we set that for Win 8 in some place that I'm missing?
Tim implied as much already, but to make this really explicit:
on win8 we have a transparent window background color:
https://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/browser-aero.css#262-272
and you can see the Windows-rendered caption (the area of which we extend behind the tabstrip).
On win10 we don't set a transparent window background, and instead set a hardcoded hsl background, which means we occlude the windows titlebar (except the top 1px border that we cut out in widget code so you can see the top window border).
Does that help?
Flags: needinfo?(dao)
Comment 15•9 years ago
|
||
The hardcoded gray background is in a default-theme media query (as it should be), so that doesn't seem directly relevant here. So my question is, can we have the non-default case use the same code path as for win8 rather than adding special rules for win10-non-default?
Flags: needinfo?(dao)
Assignee | ||
Comment 16•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #15)
> The hardcoded gray background is in a default-theme media query (as it
> should be), so that doesn't seem directly relevant here.
But the default window background color still isn't transparent.
> So my question is,
> can we have the non-default case use the same code path as for win8 rather
> than adding special rules for win10-non-default?
Are you saying you just want us to set the background color to transparent in that media query instead of to ActiveCaption? Because I can do that, but there is no way to unify those media queries, so I don't understand what you mean by "same code path".
Flags: needinfo?(dao)
Comment 17•9 years ago
|
||
Comment on attachment 8659291 [details]
MozReview Request: Bug 1190462 - Firefox shouldn't be completely unusable in high contrast white on windows 10, r?dao
(In reply to :Gijs Kruitbosch from comment #16)
> (In reply to Dão Gottwald [:dao] from comment #15)
> > The hardcoded gray background is in a default-theme media query (as it
> > should be), so that doesn't seem directly relevant here.
>
> But the default window background color still isn't transparent.
>
> > So my question is,
> > can we have the non-default case use the same code path as for win8 rather
> > than adding special rules for win10-non-default?
>
> Are you saying you just want us to set the background color to transparent
> in that media query instead of to ActiveCaption?
Does transparent have the same effect? If so I'd prefer that.
>+ @media not all and (-moz-windows-default-theme) {
>+ #main-window:not(:-moz-window-inactive) {
>+ background-color: ActiveCaption;
>+ }
>+ }
What color is used for inactive windows?
>+ @media not all and (-moz-windows-default-theme) {
>+ /* Need a border between tabs and the navbar on high contrast themes on win10. */
>+ #nav-bar {
>+ border-top: 1px solid @toolbarShadowColor@ !important;
>+ box-shadow: 0 1px 0 @toolbarHighlight@ inset;
>+ }
>+ }
I think at this point I'd prefer removing the Windows version restriction from http://hg.mozilla.org/mozilla-central/annotate/3e8dde8f8c17/browser/themes/windows/browser.css#l352 and explicitly removing the border and box-shadow for the Win10 default-theme.
Flags: needinfo?(dao)
Attachment #8659291 -
Flags: review?(dao)
Assignee | ||
Comment 18•9 years ago
|
||
Please let me know if this is what you meant, or if you want the box-shadow/border resetting to move just after where we currently set it (without media queries, after this patch).
Attachment #8659291 -
Attachment is obsolete: true
Attachment #8664860 -
Flags: review?(dao)
Comment 19•9 years ago
|
||
Comment on attachment 8664860 [details] [diff] [review]
Patch
>+ #nav-bar {
>+ border-top: none;
nit: border-top-style
border-top is set with !important, so you'll probably need to use that here too.
Attachment #8664860 -
Flags: review?(dao) → review-
Assignee | ||
Comment 20•9 years ago
|
||
Attachment #8664860 -
Attachment is obsolete: true
Attachment #8664865 -
Flags: review?(dao)
Updated•9 years ago
|
Attachment #8664865 -
Flags: review?(dao) → review+
Comment 22•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•9 years ago
|
Flags: qe-verify+
Comment 23•9 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; rv:44.0) Gecko/20100101 Firefox/44.0
The tabs are now visible when the "High Contrast White" system theme is enabled.
Tested on Windows 10 32-bit, using latest Nightly, build ID: 20150930030231.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 25•9 years ago
|
||
Comment on attachment 8664865 [details] [diff] [review]
Patch v0.2
Approval Request Comment
[Feature/regressing bug #]: win10 high contrast
[User impact if declined]: you can't use Firefox in win10 high contrast mode
[Describe test coverage new/current, TreeHerder]: no, styling only
[Risks and why]: very low, styling only change that means some of our special styling only applies on the default theme, instead of everywhere.
[String/UUID change made/needed]: no
Flags: needinfo?(gijskruitbosch+bugs)
Attachment #8664865 -
Flags: approval-mozilla-beta?
Attachment #8664865 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
status-firefox43:
--- → affected
Comment 26•9 years ago
|
||
Comment on attachment 8664865 [details] [diff] [review]
Patch v0.2
visual regression, taking it.
Should be in 42 b4.
Attachment #8664865 -
Flags: approval-mozilla-beta?
Attachment #8664865 -
Flags: approval-mozilla-beta+
Attachment #8664865 -
Flags: approval-mozilla-aurora?
Attachment #8664865 -
Flags: approval-mozilla-aurora+
Comment 28•9 years ago
|
||
Comment 29•9 years ago
|
||
I've also verified this fix on Windows 10 32-bit using:
- Firefox 42.0b4, build ID: 20151005144425
- Latest 43.0a2 Aurora, build ID: 20151005004046
You need to log in
before you can comment on or make changes to this bug.
Description
•