Closed Bug 1002370 Opened 10 years ago Closed 10 years ago

Investigate if primaryToolbar.css and primaryToolbar-aero.css can share some code

Categories

(Thunderbird :: Theme, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 32.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(1 file, 2 obsolete files)

primaryToolbar.css and primaryToolbar-aero.css aren't sharing their code but have some in common. This bug is to look if the code can be shared.
Attached patch bug1002370.patch (obsolete) — Splinter Review
I compared the XP before patch and after patch primaryToolbar.css and they are the same except some newlines which are coming from the %ifdefs. On Win7/8 I saw no difference in appearance.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8426484 - Flags: review?(josiah)
Comment on attachment 8426484 [details] [diff] [review]
bug1002370.patch

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

I didn't apply this or anything, but I trust that there are no real visual changes. I did have a couple comments, but they didn't really have to do with your patch in particular. So r+.

::: mail/themes/windows/mail/primaryToolbar.css
@@ +244,5 @@
>  }
>  
>  #button-getmsg:hover {
>    -moz-image-region: rect(24px 24px 48px 0px);
>  } 

Trailing whitespace, could you remove that?

@@ +1024,1 @@
>      -moz-margin-start: calc(1.45em + 4px);

Could you add a comment here explaining why we are calculating ems and pixels together? What's the reason for this?
Attached patch Bug1002370.patch (obsolete) — Splinter Review
(In reply to Josiah Bruner [:JosiahOne] from comment #2)
> Comment on attachment 8426484 [details] [diff] [review]
> bug1002370.patch
> 
> Review of attachment 8426484 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I didn't apply this or anything, but I trust that there are no real visual
> changes. I did have a couple comments, but they didn't really have to do
> with your patch in particular. So r+.
> 
> ::: mail/themes/windows/mail/primaryToolbar.css
> @@ +244,5 @@
> >  }
> >  
> >  #button-getmsg:hover {
> >    -moz-image-region: rect(24px 24px 48px 0px);
> >  } 
> 
> Trailing whitespace, could you remove that?

Done, plus a lot of others.
 
> @@ +1024,1 @@
> >      -moz-margin-start: calc(1.45em + 4px);
> 
> Could you add a comment here explaining why we are calculating ems and
> pixels together? What's the reason for this?

Done.
Attachment #8426484 - Attachment is obsolete: true
Attachment #8426484 - Flags: review?(josiah)
Attachment #8428365 - Flags: review?(josiah)
Attached patch Bug1002370.patchSplinter Review
(In reply to Richard Marti (:Paenglab) from comment #3)
> Created attachment 8428365 [details] [diff] [review]
> Bug1002370.patch
> 
> (In reply to Josiah Bruner [:JosiahOne] from comment #2)
> > Comment on attachment 8426484 [details] [diff] [review]
> > bug1002370.patch
> > 
> > Review of attachment 8426484 [details] [diff] [review]:
> > -----------------------------------------------------------------
> > 
> > I didn't apply this or anything, but I trust that there are no real visual
> > changes. I did have a couple comments, but they didn't really have to do
> > with your patch in particular. So r+.
> > 
> > ::: mail/themes/windows/mail/primaryToolbar.css
> > @@ +244,5 @@
> > >  }
> > >  
> > >  #button-getmsg:hover {
> > >    -moz-image-region: rect(24px 24px 48px 0px);
> > >  } 
> > 
> > Trailing whitespace, could you remove that?
> 
> Done, plus a lot of others.

Found three more. ;)
Attachment #8428365 - Attachment is obsolete: true
Attachment #8428365 - Flags: review?(josiah)
Attachment #8428366 - Flags: review?(josiah)
No more found. I should rename this bug to whitespace cleaning. ;)
Attachment #8428366 - Flags: review?(josiah) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/b9b60216226f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 32.0
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: