Closed Bug 282429 Opened 20 years ago Closed 20 years ago

Re-design Message Status Bars (junk bar & remote content bar) to be more flexible

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird1.1

People

(Reporter: mscott, Assigned: mscott)

Details

Attachments

(1 file)

Before I add a 3rd message status bar (one for phishing e-mails), I want to
re-organize the existing two message status bars into a design that makes it
easier to add new ones.
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird1.1
Attached patch the fixSplinter Review
1) Use a deck to stack the msg status bars instead of maintainig separate boxes
for each message. Changing the status message is now as easy as just changing
the selectedIndex on the deck.

2) Add a small class object for managing the status bar with methods for
setting the junk bar, setting the remote content bar and clearing the msg
status bar. 

3) Make the junkbar style match the remote content bar style (i.e. lose the
blue gradient on the backgroun). Consolidate some CSS for all our msg status
bars to use the same style rules.

This patch should make adding another status bar for e-mail scams much easier.
Attachment #174448 - Flags: superreview?(bienvenu)
Comment on attachment 174448 [details] [diff] [review]
the fix

+    var hasRemoteContent = false;
+    if (aMsgHdr && aMsgHdr.getUint32Property("remoteContentPolicy") ==
kBlockRemoteContent)
+      hasRemoteContent = true;

can be var hasRemoteContent = (aMsgHdr && aMsgHdr.getUint32Property...

in fact, you don't even need a separate var for hasRemoteContent but that would
sacrifice a little readability :-)
Attachment #174448 - Flags: superreview?(bienvenu) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Isn't it better for the user, when these message status bars have another color.
Maybe yellow, like the pop-up-blocker-bar in Firefox ?

So the user will better notice that status bar.
ummm they are yellow like the firefox status bar now...
Sorry, I only saw the screenshot in the forum 
http://forums.mozillazine.org/viewtopic.php?t=220681&sid=cc9bdbad6aad537fbdbca9bb0cb21f21
and there the status bar wasn't yellow :-(
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: