Closed
Bug 670639
Opened 14 years ago
Closed 14 years ago
Compose, message and address book windows should support personas
Categories
(Thunderbird :: Theme, defect)
Thunderbird
Theme
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 9.0
People
(Reporter: darktrojan, Assigned: Paenglab)
References
Details
Attachments
(3 files, 8 obsolete files)
|
84.44 KB,
image/png
|
Details | |
|
331.28 KB,
image/png
|
Details | |
|
25.99 KB,
patch
|
Paenglab
:
review+
Paenglab
:
ui-review+
|
Details | Diff | Splinter Review |
This is pretty easy since the LWT code is already present. Just add the lightweightthemes="true" attribute to the window tag of each window and some minor adjustments to the CSS. I haven't got a comm-central tree to patch it myself.
Comment 1•14 years ago
|
||
Yeah, that is kinda annoying…
Protz, Squib, either of you want to grab this?
Thanks,
Blake.
| Assignee | ||
Comment 2•14 years ago
|
||
Blake, are tests needed? If not I can take it.
| Assignee | ||
Comment 3•14 years ago
|
||
Should the sidebarheader in AB and composer become the personas background or be solid? For me it looks not so good with this small piece having personas in this area.
| Reporter | ||
Comment 4•14 years ago
|
||
The sidebar in Firefox has the persona's background.
| Assignee | ||
Comment 5•14 years ago
|
||
I know, but for me it looks weird with a piece hanging down into the "content"
Comment 6•14 years ago
|
||
(In reply to comment #5)
> I know, but for me it looks weird with a piece hanging down into the
> "content"
Maybe we should just avoid the issue entirely and get rid of that header over in bug 667245?
| Assignee | ||
Comment 7•14 years ago
|
||
This patch enables additionally also personas for the mail window. I haven't touched the AB sidebar header because it's planned to remove it.
The composer sidebar header shows no personas background because this was already default on MAC.
Blake: do you want a ui-r? Should I give it to Andreas?
| Reporter | ||
Updated•14 years ago
|
Attachment #545735 -
Attachment is patch: true
Attachment #545735 -
Attachment mime type: text/x-patch → text/plain
| Reporter | ||
Comment 8•14 years ago
|
||
The windows also need |background-position: right top| set to match other persona'd windows.
Comment 9•14 years ago
|
||
I'm happy to take the ui-review on this one.
| Assignee | ||
Comment 10•14 years ago
|
||
Now with background-position: right top for AB and Composer. MailWindow is using the definition from MainWindow.
Attachment #545735 -
Attachment is obsolete: true
Attachment #545979 -
Flags: ui-review?(nisses.mail)
Attachment #545979 -
Flags: review?(bwinton)
Attachment #545735 -
Flags: review?(bwinton)
Comment 12•14 years ago
|
||
Did this bitrot this fast? I'm having issues applying the patch.
| Assignee | ||
Comment 13•14 years ago
|
||
I've found a error in patch but also small changes in the aero files.
Now it should work.
Attachment #545979 -
Attachment is obsolete: true
Attachment #547472 -
Flags: ui-review?(nisses.mail)
Attachment #547472 -
Flags: review?(bwinton)
Attachment #545979 -
Flags: ui-review?(nisses.mail)
Attachment #545979 -
Flags: review?(bwinton)
Comment 14•14 years ago
|
||
There seems to be a bit inconsistency between Aero and Basic in the address book.
With that fixed, ui-r from me.
(the only issue I ran across was that some themes had readability issues with text in the sidebar header in the contacts window, but that's going to be fixed with the patch in bug 667245 as mentioned earlier).
| Assignee | ||
Comment 15•14 years ago
|
||
Sorry I haven't checked under Win7 Basic.
Attachment #547472 -
Attachment is obsolete: true
Attachment #547965 -
Flags: ui-review?(nisses.mail)
Attachment #547965 -
Flags: review?(bwinton)
Attachment #547472 -
Flags: ui-review?(nisses.mail)
Attachment #547472 -
Flags: review?(bwinton)
Comment 16•14 years ago
|
||
Comment on attachment 547965 [details] [diff] [review]
Enable personas in AB, composer and mail window v4
It now looks the same across Aero and Basic, so ui-r+
Attachment #547965 -
Flags: ui-review?(nisses.mail) → ui-review+
Comment 17•14 years ago
|
||
Comment on attachment 547965 [details] [diff] [review]
Enable personas in AB, composer and mail window v4
Review of attachment 547965 [details] [diff] [review]:
-----------------------------------------------------------------
My biggest problem is that the compose window doesn't look the same (on Mac) as the others, and when it's in the background it doesn't seem to have any persona applied to it at all!
Other than that, the code is good, but I think I'm going to have to ask for that to be fixed, so until then, it's an r-.
Sorry about that,
Blake.
Attachment #547965 -
Flags: review?(bwinton) → review-
| Assignee | ||
Comment 18•14 years ago
|
||
(In reply to comment #17)
> My biggest problem is that the compose window doesn't look the same (on Mac)
> as the others, and when it's in the background it doesn't seem to have any
> persona applied to it at all!
Please can you add a screenshot which shows the difference?
And the no persona when in background, what can this be? With Win7 and Linux I don't see such a behavior.
| Assignee | ||
Comment 19•14 years ago
|
||
Luckily I had today the ability to access a Mac (without tools, but better than nothing). Hey, that's much easier than guessing from Win and Linux DOM to Mac ;).
The inactive window problem is solved.
The not painting in title bar is really strange. When the Composer window is open and I apply the personas, everything is okay. But after closing and reopening the composer the title bar isn't painted. It looks like it's falling back from unified title bar. The AB has no such problems.
I saw also the drawintitlebar=true isn't set in composer but in main window and AB. I tried with setting it in messengercompose.xul but with no luck.
On Win and Linux I see also problems with the composer, but with the status-bar. Is the composr open when applying personas, everything is okay. But after closing/opening the composer the status-bar has no persona. On Mac I saw always the personafied status-bar.
Could it be the composer is differently initiated? Could this bug be landed as is (naturally after review) and I'm opening a bug to track this problem?
Attachment #547965 -
Attachment is obsolete: true
Attachment #550645 -
Flags: ui-review+
Attachment #550645 -
Flags: review?(bwinton)
Comment 20•14 years ago
|
||
Compose windows are recycled, i.e. we're reusing the same one, just resetting to its initial state. Could it be that's what you're hitting?
| Assignee | ||
Comment 21•14 years ago
|
||
Maybe, but this also happens after closing/opening of TB. So then it can't reuse a window.
Comment 22•14 years ago
|
||
Comment on attachment 550645 [details] [diff] [review]
Enable personas in AB, composer and mail window v5
Review of attachment 550645 [details] [diff] [review]:
-----------------------------------------------------------------
> Could it be the composer is differently initiated? Could this bug be landed as is (naturally after review) and I'm opening a bug to track this problem?
I'm really uncomfortable doing that, since this is a definite regression, and people will yell at me a lot if we break things and don't manage to fix them before the next release ships.
Other than that, though, I like the patch. I think that means an r-, but you're on the right track.
Thanks,
Blake.
Updated•14 years ago
|
Attachment #550645 -
Flags: review?(bwinton) → review-
| Assignee | ||
Comment 23•14 years ago
|
||
So who can I ask to check what happens with the composer window? I'm not able to debug this.
Comment 24•14 years ago
|
||
Looking into this. Looks like part of the styles for the compose window (namely, messengercompose.css in gnomestripe) have been checked-in already...
Comment 25•14 years ago
|
||
So the issue seems to be incredibly subtle and non-trivial. I think somehow a load event gets fired at the wrong time, and by the time the code reaches LighweightThemeConsumer, which is the JSM in charge of settings the right colors and background images, the status bar *is not even in the DOM yet*. Yay...
Comment 26•14 years ago
|
||
So the issue seems to be incredibly subtle and non-trivial. I think somehow a load event gets fired at the wrong time, and by the time the code reaches LighweightThemeConsumer, which is the JSM in charge of settings the right colors and background images, the status bar *is not even in the DOM yet*. Yay...
Comment 27•14 years ago
|
||
This should fix the issue.
- Richard, can you make sure this now works fine for you?
- Blake, I had to change some stuff in MsgComposeCommands.js, the gory details are in there. Could you just review that file? The changes are pretty trivial, except why that would make the thing file is not trivial at all.
Attachment #550645 -
Attachment is obsolete: true
Attachment #557039 -
Flags: ui-review+
Attachment #557039 -
Flags: review?(bwinton)
Comment 28•14 years ago
|
||
Meant "make the thing fail", of course!
| Assignee | ||
Comment 29•14 years ago
|
||
(In reply to Jonathan Protzenko [:protz] from comment #24)
> Looking into this. Looks like part of the styles for the compose window
> (namely, messengercompose.css in gnomestripe) have been checked-in already...
This must be by error :(
(In reply to Jonathan Protzenko [:protz] from comment #27)
> Created attachment 557039 [details] [diff] [review]
> Corrected patch
>
> This should fix the issue.
>
> - Richard, can you make sure this now works fine for you?
> - Blake, I had to change some stuff in MsgComposeCommands.js, the gory
> details are in there. Could you just review that file? The changes are
> pretty trivial, except why that would make the thing file is not trivial at
> all.
I tried the patch and it didn't apply in MsgComposeCommands.js. This made the error:
var modifiedAttachmentName = attachmentName.value;
if (modifiedAttachmentName == "")
return; // name was not filled, bail out
var nameAndSize = modifiedAttachmentName;
if (item.attachment.size != -1)
{
var size = gMessenger.formatFileSize(item.attachment.size);
- item.label = gComposeBundle.getFormattedString(
+ item.label = getComposeBundle().getFormattedString(
"attachmentNameAndSize", [modifiedAttachmentName, size]);
}
else
item.label = modifiedAttachmentName;
item.attachment.name = modifiedAttachmentName;
gContentChanged = true;
}
I have a patch which applies and has a change in messengercompose.css in gnomestripe (a already checked-in part which is a text-shadow: none missing).
With my patch the composer status bar is now always painted with the persona under Linux and Windows - Great work!!
I can't say if it works under Mac.
| Assignee | ||
Comment 30•14 years ago
|
||
Patch which applies on latest trunk.
Blake, if you have problems with this patch, please try the one from protz
Attachment #557039 -
Attachment is obsolete: true
Attachment #557245 -
Flags: ui-review+
Attachment #557245 -
Flags: review?(bwinton)
Attachment #557039 -
Flags: review?(bwinton)
Comment 31•14 years ago
|
||
Sorry, here's another updated patch that applies cleanly on trunk. I just made a small change in that I renamed the old gComposeBundle variable to _gComposeBundle to prevent people from using the old variable by accident.
Richard, are you positive the text-shadow change has been checked-in already on gnomestripe?
Attachment #557245 -
Attachment is obsolete: true
Attachment #557247 -
Flags: ui-review+
Attachment #557247 -
Flags: review?(bwinton)
Attachment #557245 -
Flags: review?(bwinton)
| Assignee | ||
Comment 32•14 years ago
|
||
(In reply to Jonathan Protzenko [:protz] from comment #31)
> Created attachment 557247 [details] [diff] [review]
> Corrected corrected patch
>
> Richard, are you positive the text-shadow change has been checked-in already
> on gnomestripe?
The text-shadow change isn't checked-in. I looked in my local repository and also on <http://hg.mozilla.org/comm-central/file/e0953facfcfc/mail/themes/gnomestripe/mail/compose/messengercompose.css>
Comment 33•14 years ago
|
||
Comment on attachment 557247 [details] [diff] [review]
Corrected corrected patch
Review of attachment 557247 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good on OS X, and I checked the inter-diff and was happy with the changes, so r=me with the tiny nit below fixed! :)
Also, good catch with the lazy initialization. I can't imagine how you found that…
::: mail/themes/pinstripe/mail/compose/messengercompose.css
@@ -940,2 +959,2 @@
> > border-bottom: 1px solid #A3A3A3;
> > - background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
> > + background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
I don't see this file anywhere in the source tree. Are you sure we still need this rule?
Attachment #557247 -
Flags: review?(bwinton) → review+
| Assignee | ||
Comment 34•14 years ago
|
||
(In reply to Blake Winton (:bwinton - Thunderbird UX) from comment #33)
> ::: mail/themes/pinstripe/mail/compose/messengercompose.css
> @@ -940,2 +959,2 @@
> > > border-bottom: 1px solid #A3A3A3;
> > > - background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
> > > + background: url("chrome://global/skin/inset_gradient_1px.png") repeat !important;
>
> I don't see this file anywhere in the source tree. Are you sure we still
> need this rule?
I haven't checked if this file exists. I saw only the wrong indentation and corrected it. You are right I can't also not find this file. I removed this unneeded line.
I also added the missing text-shadow: none to the Linux messengercompose.css.
Attachment #557247 -
Attachment is obsolete: true
Attachment #557584 -
Flags: ui-review+
Attachment #557584 -
Flags: review+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 35•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 9.0
You need to log in
before you can comment on or make changes to this bug.
Description
•