Closed Bug 495478 Opened 15 years ago Closed 15 years ago

Buttons on summary page for collapsed threads don't have same height

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b4

People

(Reporter: Aureliano, Assigned: bwinton)

References

Details

(Keywords: polish)

Attachments

(4 files, 4 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090529 Lightning/1.0pre Shredder/3.0b3pre ID:20090529032206

Archive and Delete buttons not have the same height.

using

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090529
Lightning/1.0pre Shredder/3.0b3pre ID:20090529032206

attached file for details

Reproducible: Always
Attached image screenshot
Bryan, giving to you as we were talking about it. We should at least figure out what we want those two buttons to look like on XP & vista.
Assignee: nobody → clarkbw
Flags: blocking-thunderbird3?
Those are some ugly looking buttons.  I suppose it's the old XP theme?  We should at least match height with each button.
Status: UNCONFIRMED → NEW
Ever confirmed: true
It's not just Classic, it's Luna too, and it's not just the collapsed thread summary, it's the message reader too, since the Tango icons landed. I thought about filing on it then, then thought about claiming that it was just bug 456832 now hitting default font size too, then thought about how little fun I had with Lightning's similar issue, and then a bird flew by the window, and...
Blocks: 488061
maybe blake can take a look at this
Assignee: clarkbw → bwinton
Summary: Buttons on summary page for collapsed threads → Buttons on summary page for collapsed threads don't have same height
This seems like needed polish blocking+ and initially setting at b3.
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Keywords: polish
Target Milestone: --- → Thunderbird 3.0b3
It would be great to get this for b3, but we wouldn't actually hold b3 for this.
Target Milestone: Thunderbird 3.0b3 → Thunderbird 3.0b4
I haven't quite gotten the Reply/Reply-All/Reply-List buttons to line up with the rest, so I'm not going to ask for a review quite yet.
Attached patch The first cut at the patch. (obsolete) — Splinter Review
A few images will be coming up, if you wanted to wait to see what it looked like, instead of patching and building your own copy, Bryan.
Attachment #390139 - Attachment is obsolete: true
Attachment #390326 - Flags: ui-review?(clarkbw)
Attachment #390326 - Flags: review?(bienvenu)
Comment on attachment 390326 [details] [diff] [review]
The first cut at the patch.

The buttons on the multimessage view are now incorrectly sized on OSX, so let's hold off on this review until I get that working.
Attachment #390326 - Flags: ui-review?(clarkbw)
Attachment #390326 - Flags: review?(bienvenu)
Okay, it's all lining up on OS X now, too.

I don't have a linux box/VM to test on, so if it looks wonky there, please let me know, and I'll try to set one up/ask someone for help.

Thanks,
Blake.
Attachment #390326 - Attachment is obsolete: true
Attachment #390512 - Flags: ui-review?(clarkbw)
Attachment #390512 - Flags: review?(bienvenu)
I'll try this on linux later tonight and get a review off
Whiteboard: [needs review bienvenu,clarkbw]
Attachment #390512 - Flags: review?(bienvenu) → review+
Comment on attachment 390512 [details] [diff] [review]
The previous patch, with an OS X fix.

looks better on Windows.
Whiteboard: [needs review bienvenu,clarkbw] → [needs review clarkbw]
Comment on attachment 390512 [details] [diff] [review]
The previous patch, with an OS X fix.

> .msgHeaderView-button > .button-box,
>-.msgHeaderView-button[type="menu-button"] > .button-menubutton-button {
>+.msgHeaderView-button[type="menu-button"] .button-box {
>   /* Needed to make the buttons the same height as the trash icon */
>-  min-height: 16px;
>+  min-height: 21px;
> }

Another way to do this that relies less on magic numbers would be as follows (which works in Windows, anyway):

.msgHeaderView-button > .button-box > .button-icon,
.msgHeaderView-button[type="menu-button"] .button-icon {
  /* Needed to make the buttons the same height as the trash icon */
  min-height: 16px;
}
Well... I suppose "16px" is still a magic number, but at least it's the same magic number as the one used for the dimensions of the trash icon! :)
(In reply to comment #15)
> Another way to do this that relies less on magic numbers would be as follows
> (which works in Windows, anyway):
> .msgHeaderView-button > .button-box > .button-icon,
> .msgHeaderView-button[type="menu-button"] .button-icon {
>   /* Needed to make the buttons the same height as the trash icon */
>   min-height: 16px;
> }

I just tried that, but the button still seems a pixel too small.  So since 17 doesn't seem much better than 21, I think I'll leave the patch the way it is.  (Unless there's something else I can change.  :)

Thanks,
Blake.
Comment on attachment 390512 [details] [diff] [review]
The previous patch, with an OS X fix.

tried it on linux earlier and it looked fine.  also checked it on os x today and it looks good.
Attachment #390512 - Flags: ui-review?(clarkbw) → ui-review+
Attached patch Remove superstitious CSS (obsolete) — Splinter Review
(In reply to comment #17)
> I just tried that, but the button still seems a pixel too small.  So since 17
> doesn't seem much better than 21, I think I'll leave the patch the way it is. 
> (Unless there's something else I can change.  :)

Now that I've looked more carefully, I see a one-pixel difference in the heights with your patch, too. Comparing them side-by-side, it appears that the Trash icon's height in the multi-message summary is one pixel taller than the one in the single-message header. The culprit seems to be some superstitious code in "mail/themes/qute/mail/multimessageview.css".

The attached patch seems to resolve it for me, though there are probably some improvements that could be made to it still, such as eliminating the .trashButton class from multimessageview.css and using .hdrTrashButton from messageHeader.css.
Attachment #392373 - Attachment is patch: true
Attachment #392373 - Attachment mime type: application/octet-stream → text/plain
This updated patch removes some of the duplicate CSS in <theme>/mail/multimessageview.css and defers instead to <theme>/mail/messageHeader.css which is included in multimessageview.xhtml anyway.

Note that I didn't touch the pinstripe theme since I don't have a Mac and have no idea what's going on there with some of the styling. It works in Windows and Linux (GTK at least) though.
Attachment #392373 - Attachment is obsolete: true
Comment on attachment 392626 [details] [diff] [review]
Use messageHeader.css rules where applicable

Looks good on OS X, too.

One nit, the patch to mail/themes/qute/mail/messageHeader.css didn't apply in my version of the source.  It looks like a line-ending thing.  We'll see if bienvenu or clarkbw run into it as well, or if it's something on my end.  :)

Thanks,
Blake.
Attachment #392626 - Flags: ui-review?(clarkbw)
Attachment #392626 - Flags: review?(bienvenu)
Yeah, when I was editing (In reply to comment #21)
> One nit, the patch to mail/themes/qute/mail/messageHeader.css didn't apply in
> my version of the source.  It looks like a line-ending thing.  We'll see if
> bienvenu or clarkbw run into it as well, or if it's something on my end.  :)

Yeah, when editing that file, I noticed that it had Windows-style carriage returns even though none of the other Qute stuff did. I tried to maintain the line-ending scheme in it, but it's possible that the diff got angry about it.
Attachment #392626 - Flags: ui-review?(clarkbw) → ui-review+
Comment on attachment 392626 [details] [diff] [review]
Use messageHeader.css rules where applicable

didn't get any issues applying the patch and it looks good.  Thanks!!
Attachment #392626 - Flags: review?(bienvenu) → review+
Comment on attachment 390512 [details] [diff] [review]
The previous patch, with an OS X fix.

I like the newer patch more.  Thanks, Jim!
Attachment #390512 - Attachment is obsolete: true
Keywords: checkin-needed
Whiteboard: [needs review clarkbw]
Status: NEW → ASSIGNED
Checked in: http://hg.mozilla.org/comm-central/rev/b9f3451243e9

Note: I had to fix the line endings in mail/themes/qute/mail/messageHeader.css for some reason they were a mixture of unix and non-unix.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: