Closed Bug 384080 Opened 17 years ago Closed 15 years ago

[Mac Classic] dialogheaders should not be displayed in Prefs and MailNews account settings

Categories

(SeaMonkey :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stefanh, Assigned: mnyromyr)

References

Details

Attachments

(1 file, 2 obsolete files)

This is due to:

pinstripe/global/global.css:

193 #header {
194         display: none !important;
195 }


pinstripe/global/dialog.css:

80 .dialogheader-title {
81   margin: 0px !important;
82   font-size: larger;
83   font-weight: bold;
84   display: none;
85 }

I think we might be able to remove/move the #header rule. The .dialogheader-title rules in dialog.css needs to be investigated a bit, since they probably affect lots of stuff.
Just to make it clear: In the account settings, it's only the .dialogheader-title label that is unvisible (the background is there).
So... I don't think any mac apps display any headers in their pref windows - that's the reason their hidden in toolkit. On the 1.7 branch, FF had the same pref layout as SeaMonkey has now, I think (that's prolly the reason for the #header rule). From a quick look it appears that not even MSWord (same layout as SeaMonkey) from 2004 display any headers in the prefs.
Well, we did before, we do on the platforms and it doesn't actually hurt any rules, so I still think we should get 'em back.
(In reply to comment #3)
> Well, we did before, we do on the platforms and it doesn't actually hurt any
> rules, so I still think we should get 'em back.
> 

I don't know if I agree (not even the ancient IE5.2 has headers displayed in the pref panels). Besides, several pref panels doesn't fit with the headers displayed.
Note that with the new pref pane it's really an overkill to display the headers - those are displayed in the titlebar afaics.

This means that:
1) First we display "abc" in the tree
2) Then we display "abc" in the titlebar
3) And then we should display "abc" in the header?
Note that an argument saying "we did it before" isn't really valid when it comes to mac - we did (and still do) lots of things wrong on mac.
Our legacy pref window's title is just "preferences", our new toolkit one displays the pane label there. Thus I came to agree that we can hide it for Mac.
This version 1a does this by ifdeffing code not needed for Mac.
Assignee: general → mnyromyr
Status: NEW → ASSIGNED
Attachment #296854 - Flags: superreview?(neil)
Attachment #296854 - Flags: review?(stefanh)
Attached patch [net hickup] (obsolete) — Splinter Review
Attachment #296855 - Flags: superreview?
Attachment #296855 - Flags: review?
This version 1b keeps the XUL the same on all platforms and just hides the unneeded stuff on Mac. 

I'd prefer this solution.
Attachment #296856 - Flags: superreview?(neil)
Attachment #296856 - Flags: review?
Attachment #296855 - Attachment description: v1b: just hide the xul element for Mac → [net hickup]
Attachment #296855 - Attachment is obsolete: true
Attachment #296855 - Flags: superreview?
Attachment #296855 - Flags: review?
Attachment #296856 - Flags: review? → review?(stefanh)
How making the dialogheader hidden by default and #ifdef the code that unhides?
(preferences.xml)

113 #ifdef XP_WIN
114              title="&preferencesDefaultTitleWin.title;"
115 #else
116              title="&preferencesDefaultTitleMac.title;"
117 #endif

This is never used then?


Btw, what is correct behaviour on other platforms? Now when I'm thinking of it I'm a bit unsure if it's correct to have the pane's title as the window's title... This is of course better than before, but for mac I suspect the "real" solution would be to have "preferencesDefaultTitleMac.title" in the window's title and at the same time not having a headertitle... Few mac apps have this kind of preference window, but the ones I've checked all have it laid out like this.
(In reply to comment #11)
>I'm a bit unsure if it's correct to have the pane's title as the window's title
There's not a lot we can do about that, because it's hardcoded into toolkit.
Comment on attachment 296854 [details] [diff] [review]
v1a: ifdef out code irrelevant to Mac [checked in with adjustment (comment #15)]

If you really want to keep the xul unchanged, I'm all in for Neil's suggestion in comment #10.
Attachment #296854 - Flags: review?(stefanh) → review+
Comment on attachment 296854 [details] [diff] [review]
v1a: ifdef out code irrelevant to Mac [checked in with adjustment (comment #15)]

sr=me, optionally using <xul:dialogheader anonid="paneHeader" hidden="true"/> instead.
Attachment #296854 - Flags: superreview?(neil) → superreview+
Comment on attachment 296854 [details] [diff] [review]
v1a: ifdef out code irrelevant to Mac [checked in with adjustment (comment #15)]

Landed on trunk with hidden="true".

I'll leave this bug open for the MailNews account settings, which may be somewhat harder to fix, because it's a shared file.
Attachment #296856 - Flags: superreview?(neil)
Attachment #296856 - Flags: review?(stefanh)
Attachment #296856 - Attachment is obsolete: true
Attachment #296854 - Attachment description: v1a: ifdef out code irrelevant to Mac → v1a: ifdef out code irrelevant to Mac [checked in with adjustment (comment #15)]
Adjusting the title a bit...
Summary: [Mac Classic] dialogheaders not displayed in Prefs and MailNews account settings → [Mac Classic] dialogheaders should not be displayed in Prefs and MailNews account settings
Depends on: 460699
Stefan fixed the remaining parts in bug 460699.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: