Closed Bug 494430 Opened 15 years ago Closed 15 years ago

Threadpane column icons not centered in new Windows XP theme

Categories

(Thunderbird :: Mail Window Front End, defect, P4)

x86
Windows XP
defect

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: philor, Assigned: bwinton)

References

Details

(Keywords: polish, regression, Whiteboard: [no l10n impact])

Attachments

(5 files, 2 obsolete files)

Attached image Screenshot
Bug 488107 shuffled around the margins and paddings for the icons that are displayed in the header of the read, attachment, starred, and junk columns, but whatever alignment that was trying to do, the end result was making them very much offcenter: the attachment and star icons are a little low and a little right, the read icon is way high (possibly partly because of the image itself) and jammed against the right side, the junk icon is low and jammed against the right side.
that's really strange.  they are perfectly centered on mine... I can't understand what the difference would be.
Where are you seeing them centered? They look fine for me on Win7 in Aero, and only slightly off on two separate XP installs in Classic (which burns more of the space with shaded bars between sections, so there's less off to be off) but totally busted on both XPs in Luna.
ah, sorry.  i've been looking at them in Win7
Well then, lucky thing we're going to have an Aero theme, where I look forward to seeing those padding changes after we take them out of non-Aero! :)
now that you've landed bug 468751 it's probably a good time to look at getting this fixed.  I'm trying to get an XP VM together but I already have some questions.

Do we copy the changed parts of mailWindow1 from attachment 377356 [details] [diff] [review] into a mailWindow1-aero.css?

Giving us:
mail/themes/qute/mail/mailWindow1.css
mail/themes/qute/mail/mailWindow1-aero.css

And what is the name mailWindow1 about?  I've been resisting the urge to rename that file something sane.
See, for instance, http://mxr.mozilla.org/mozilla-central/source/browser/themes/winstripe/browser/places/organizer-aero.css - you add mailWindow1-aero.css, preprocessed so you can |%include mailWindow1.css| at the start, then put just the changed bits that you want to override in mailWindow1-aero.css:

treecol.readColumnHeader {
  -moz-padding-end: 1px;
  -moz-padding-start: 1px;
}

and put mailWindow1.css back like it was, since the later rules in mailWindow1-aero.css will override the earlier ones from mailWindow1.css.
Oh, mailWindow1.css - back in the day, there were two layouts, classic and vertical, and vertical was produced by a different XUL file which applied mailWindow2.css (which @imported mailWindow1.css). So, the name's an artifact, but renaming it would make life even more difficult for third-party themers, without any really solid benefit.
Well I'm already making so many lives completely painful right now I figure it's a good time to slip something else in.  Though I'm really too lazy to actually do that renaming work.

And despite your instructions leading me exactly to water my mailWindow1-aero.css is ignoring the * in front of it and doesn't seem to be getting processed.

Just to check that the CSS override works I did this hack to make the CSS import at runtime and everything seems to work as expected.

jar.mn:
  skin/classic/aero/messenger/mailWindowXP.css                     (mail/mailWindow1.css)
  skin/classic/aero/messenger/mailWindow1.css                      (mail/mailWindow1-aero.css)

mailWindow1-aero.css:
@import url("chrome://messenger/skin/mailWindowXP.css");
treecol.readColumnHeader {
  -moz-padding-end: 1px;
  -moz-padding-start: 1px;
}

treechildren::-moz-tree-image(unreadButtonColHeader) {
  -moz-padding-start: 0px;
  -moz-margin-start: -3px;
}
 
treecol.attachmentColumnHeader {
  -moz-padding-start: 5px;
}

treecol.flagColumnHeader {
  -moz-padding-start: 5px;
}

treecol.junkStatusHeader {
  -moz-padding-end: 1px;
  -moz-padding-start: 1px;
}

treechildren::-moz-tree-image(junkStatusCol) {
  -moz-margin-start: -3px;
}

I'll post the patch up here since it *looks like it should work* and yet it's not.
Here's the patch.  Turns out I had some classic Windows garbage characters sitting in front of my %include statement.  I'd like to thank Visual Studio Express for taking the last hour or so of my life away from, not sure what that was about.
Assignee: nobody → clarkbw
Status: NEW → ASSIGNED
Attachment #381630 - Flags: review?(philringnalda)
Considerably improved, but either we were a touch offcenter before, or we need to do a little tweaking to really center the new images on XP.
Attachment #381630 - Attachment is obsolete: true
Attachment #381630 - Flags: review?(philringnalda)
Comment on attachment 381630 [details] [diff] [review]
XP and Vista differences pulled apart

minus since this does the revert but isn't enough.  

I need to get a real XP build since "running in XP environment" is doing some real strange stuff to the build files
assigning to davida who has an XP build. take patch and run
Assignee: clarkbw → david.ascher
Does anyone have an XP build?
blake, hot potato time!  do you have an XP build?
Assignee: david.ascher → bwinton
Yup, I do.
Flags: blocking-thunderbird3?
Keywords: polish
Whiteboard: [no l10n impact]
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Priority: -- → P4
I'll make sure Win7 also looks pretty, before I submit the new patch.
Attached patch The patch. (obsolete) — Splinter Review
Let's see how you all like this version of the patch.
Attachment #404912 - Flags: ui-review?(clarkbw)
Attachment #404912 - Flags: review?(philringnalda)
Whiteboard: [no l10n impact] → [no l10n impact][patch up, needs r/ui-r]
Comment on attachment 404912 [details] [diff] [review]
The patch.

works for me
Attachment #404912 - Flags: ui-review?(clarkbw) → ui-review+
Attached patch The new patch.Splinter Review
Philor pointed out some real odditites in XP Classic with the previous patch.
This one should fix them, along with XP New, and Win 7.

Thanks,
Blake.
Attachment #404912 - Attachment is obsolete: true
Attachment #405343 - Flags: ui-review?(clarkbw)
Attachment #405343 - Flags: review?(philringnalda)
Attachment #404912 - Flags: review?(philringnalda)
Attachment #405343 - Flags: review?(philringnalda) → review+
Comment on attachment 405343 [details] [diff] [review]
The new patch.

Now that, that's purty!
Whiteboard: [no l10n impact][patch up, needs r/ui-r] → [no l10n impact][patch up, needs ui-r]
Comment on attachment 405343 [details] [diff] [review]
The new patch.

well things appear the same on vista and that's about all I ever ui-r'd before so i'll just go with the flow since I don't have XP.
Attachment #405343 - Flags: ui-review?(clarkbw) → ui-review+
Keywords: checkin-needed
Whiteboard: [no l10n impact][patch up, needs ui-r] → [no l10n impact]
Target Milestone: --- → Thunderbird 3.0rc1
http://hg.mozilla.org/comm-central/rev/c9a156770bc3
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: