Closed Bug 1172241 Opened 9 years ago Closed 9 years ago

Get rid of messageWindow-aero.css

Categories

(Thunderbird :: Theme, defect)

All
Windows
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 41.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(1 file, 1 obsolete file)

Like FX I'm working on removing the -aero files. This one is the first bug for this.
Attached patch unifyMessageWindow.patch (obsolete) — Splinter Review
This patch combines both messageWindow.css files to one file and uses media queries to differentiate.

Like FX I also rename the XP image to -XP and remove the -aero from the aero image.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8616373 - Flags: review?(bwinton)
(In reply to Richard Marti (:Paenglab) from comment #1)
> Created attachment 8616373 [details] [diff] [review]
> unifyMessageWindow.patch
> 
> Like FX I also rename the XP image to -XP and remove the -aero from the aero
> image.

Oops, wrong bug. This one has no images to rename.
Comment on attachment 8616373 [details] [diff] [review]
unifyMessageWindow.patch

Review of attachment 8616373 [details] [diff] [review]:
-----------------------------------------------------------------

Hmm.  I've got a lot of questions, so I think I'm going to have to say "r-", at least until they're answered.  ;)

::: mail/themes/windows/mail/messageWindow.css
@@ +20,5 @@
>  #mail-toolbox:-moz-lwtheme {
>    text-shadow: none;
>  }
>  
> +@media (-moz-os-version: windows-xp) {

Why are we putting these in a windows-xp block?  It looks like they used to apply to the not-windows-xp code, too…

@@ +21,5 @@
>    text-shadow: none;
>  }
>  
> +@media (-moz-os-version: windows-xp) {
> +  #messagepanebox {

I don't think we need this rule here, because "text-shadow: none" is in the main #messagepanebox rule above.

@@ +71,5 @@
> +    border-bottom: 4px solid highlight;
> +  }
> +}
> +
> +@media (-moz-windows-compositor) {

Shouldn't this also be in the "@media not all and (-moz-os-version: windows-xp) {" section?
Attachment #8616373 - Flags: review?(bwinton) → review-
(In reply to Blake Winton (:bwinton) from comment #3)
> Comment on attachment 8616373 [details] [diff] [review]
> unifyMessageWindow.patch
> 
> Review of attachment 8616373 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Hmm.  I've got a lot of questions, so I think I'm going to have to say "r-",
> at least until they're answered.  ;)
> 
> ::: mail/themes/windows/mail/messageWindow.css
> @@ +20,5 @@
> >  #mail-toolbox:-moz-lwtheme {
> >    text-shadow: none;
> >  }
> >  
> > +@media (-moz-os-version: windows-xp) {
> 
> Why are we putting these in a windows-xp block?  It looks like they used to
> apply to the not-windows-xp code, too…

This two rules are XP only.

> @@ +21,5 @@
> >    text-shadow: none;
> >  }
> >  
> > +@media (-moz-os-version: windows-xp) {
> > +  #messagepanebox {
> 
> I don't think we need this rule here, because "text-shadow: none" is in the
> main #messagepanebox rule above.

Correct -> removed.

> @@ +71,5 @@
> > +    border-bottom: 4px solid highlight;
> > +  }
> > +}
> > +
> > +@media (-moz-windows-compositor) {
> 
> Shouldn't this also be in the "@media not all and (-moz-os-version:
> windows-xp) {" section?

XP doesn't use -moz-windows-compositor and thus doesn't use the rules in this query. (see also https://dxr.mozilla.org/mozilla-central/source/browser/themes/windows/devedition.css#28 and the lines 14 and 15 where it's used too in FX).

If you like I can move it inside the not XP section to be 200% sure.
Attachment #8616373 - Attachment is obsolete: true
Attachment #8622535 - Flags: review?(bwinton)
Comment on attachment 8622535 [details] [diff] [review]
unifyMessageWindow.patch v2

Looks much better, thanks!  :)
Attachment #8622535 - Flags: review?(bwinton) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/a0eeb9e33a65 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 41.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: