Closed Bug 1717079 Opened 3 years ago Closed 3 years ago

Clean up the dialog stylesheets and make the dialogs themeable where needed

Categories

(Thunderbird :: Theme, task)

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(1 file, 2 obsolete files)

During looking at the dialogs on new AB I found that the dialogs.css stylesheet is almost unneeded. It has only one rule that is used in only one of the referencing dialogs (.wizard-box in importDialog.xhtml). The only thing it did was adding messenger.css.

I removed this stylesheet and directly added messenger.css, which has now the .wizard-box rule, to the dialogs.

During this work I found that we have still dialogs which aren't themeable.

Attached patch 1717079-dialog-clean-up.patch (obsolete) — Splinter Review

Removed dialogs.css and made some more dialogs themeable.

sendProgress.xhtml and shutdownWindow.xhtml use now the new progressmeter styling. But I couldn't test shutdownWindow.xhtml as I don't know how to open it (window.openDialog(( doesn't work) or how to trigger it. I've never seen this dialog. If it is never shown, I can remove the changes for it.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9227723 - Flags: review?(alessandro)
Summary: Clean up the dialog stylesheets make the dialogs themeable where needed → Clean up the dialog stylesheets and make the dialogs themeable where needed
Attached patch 1717079-dialog-clean-up.patch (obsolete) — Splinter Review

Fixed the commit message.

Attachment #9227723 - Attachment is obsolete: true
Attachment #9227723 - Flags: review?(alessandro)
Attachment #9227728 - Flags: review?(alessandro)

(In reply to Richard Marti (:Paenglab) from comment #1)

sendProgress.xhtml and shutdownWindow.xhtml use now the new progressmeter styling. But I couldn't test shutdownWindow.xhtml as I don't know how to open it.

Oh yeah, I've never seen that dialog either. It's opened from the nsMsgShutdownService in the nsMsgMailSession.cpp file, but I'm not sure how to trigger it.
Magnus, do you know if the shutdownWindow.xhtml dialog is still use it and how we can trigger it?

Flags: needinfo?(mkmelin+mozilla)

I haven't seen it. But looks like if you have send later set to send before shutdown and send something larger you should be able to see it come up until the send has been completed.

Flags: needinfo?(mkmelin+mozilla)
Comment on attachment 9227728 [details] [diff] [review]
1717079-dialog-clean-up.patch

Review of attachment 9227728 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good, thanks for going through all these dialogs.

::: mailnews/base/content/msgSynchronize.xhtml
@@ +14,5 @@
>          onload="OnLoad();"
>          style="width: 35em;">
>  <dialog id="msg-synchronizer">
>      <script src="chrome://messenger/content/msgSynchronize.js"/>
> +  <script src="chrome://messenger/content/dialogShadowDom.js"/>

nit: wrong indentation.
Attachment #9227728 - Flags: review?(alessandro) → review+

Fixed the indentation.

Attachment #9227728 - Attachment is obsolete: true
Attachment #9227831 - Flags: review+
Target Milestone: --- → 91 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b30a0fe37d1c
Clean up the dialog stylesheets and make the dialogs themeable where needed. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Regressions: 1721087
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: