Closed Bug 1717637 Opened 4 years ago Closed 4 years ago

Remove unneeded global.css imports in calendar files and make remaining dialogs themeable

Categories

(Calendar :: Dialogs, task)

Tracking

(thunderbird_esr78 unaffected)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr78 --- unaffected

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(3 files, 2 obsolete files)

I saw that some dialogs imported global.css rules twice. This came from importing global.css and messenger.css which itself also imports global.css.

I removed global.css and added messenger.css in conjunction with adding themeable support for the dialogs that haven't yet.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9228351 - Flags: review?(alessandro)
Comment on attachment 9228351 [details] [diff] [review] 1717637-calendar-remove-global.patch Review of attachment 9228351 [details] [diff] [review]: ----------------------------------------------------------------- This is a great improvement, thanks. There are some minor issues that I'm not sure are related to these changes, but I think we should tackle here. Uploading screenshots and description in a minute.
Attachment #9228351 - Flags: review?(alessandro) → feedback+

Alert dialogs on Linux with TB dark theme don't have readable buttons.
This happens also for the "Attach link" dialog.

The lock button between start/end date doesn't have a good hover color when dark theme is used.

The save dialog is M-C issue.
Fixed the keepduration-button.

Attachment #9228351 - Attachment is obsolete: true
Attachment #9228426 - Flags: review?(alessandro)
Comment on attachment 9228426 [details] [diff] [review] 1717637-calendar-remove-global.patch Review of attachment 9228426 [details] [diff] [review]: ----------------------------------------------------------------- Visually looks good. Some things to fix. ::: calendar/base/content/dialogs/calendar-ics-file-dialog.xhtml @@ +36,5 @@ > + <script src="chrome://calendar/content/import-export.js"/> > + <script src="chrome://calendar/content/widgets/calendar-item-summary.js"/> > + <script src="chrome://calendar/content/calendar-dialog-utils.js"/> > + <script src="chrome://calendar/content/calendar-ui-utils.js"/> > + <script src="chrome://messenger/content/dialogShadowDom.js"/> Magnus usually points out that the script tag shouldn't be self closing. Let's ping him to confirm before landing this. ::: calendar/base/content/dialogs/publishDialog.xhtml @@ +13,5 @@ > <!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1; > <!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2; > ]> > > +<window id="calendar-publishwindow" You can't move the ID from the dialog to the Windows as it breaks all those methods in the publishDialog.js file that use the ID to find the buttons. ::: calendar/base/themes/common/calendar-alarms.css @@ +2,5 @@ > * License, v. 2.0. If a copy of the MPL was not distributed with this > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > > +.reminder-details > .alarm-icons-box { > + width: 15px; This should have 4 spaces indentation if we want to respect this file current indentation. Or maybe we should use the occasion to move everything to 2 spaces.
Attachment #9228426 - Flags: review?(alessandro) → feedback+

(In reply to Alessandro Castellani [:aleca] from comment #6)

Comment on attachment 9228426 [details] [diff] [review]
1717637-calendar-remove-global.patch

Review of attachment 9228426 [details] [diff] [review]:

Visually looks good.
Some things to fix.

::: calendar/base/content/dialogs/calendar-ics-file-dialog.xhtml
@@ +36,5 @@

  • <script src="chrome://calendar/content/import-export.js"/>
  • <script src="chrome://calendar/content/widgets/calendar-item-summary.js"/>
  • <script src="chrome://calendar/content/calendar-dialog-utils.js"/>
  • <script src="chrome://calendar/content/calendar-ui-utils.js"/>
  • <script src="chrome://messenger/content/dialogShadowDom.js"/>

Magnus usually points out that the script tag shouldn't be self closing.
Let's ping him to confirm before landing this.

The other dialogs hadn't the closing </script> and wanted them consistent. Self closing is only an issue when it is a HTML. Reverted my changes.

::: calendar/base/content/dialogs/publishDialog.xhtml
@@ +13,5 @@

<!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
]>

+<window id="calendar-publishwindow"

You can't move the ID from the dialog to the Windows as it breaks all those
methods in the publishDialog.js file that use the ID to find the buttons.

This dialog wasn't changed in bug 1698143 and I wanted to make persist again. Are my changes in publishDialog.js okay to work again?

::: calendar/base/themes/common/calendar-alarms.css
@@ +2,5 @@

+.reminder-details > .alarm-icons-box {

  • width: 15px;

This should have 4 spaces indentation if we want to respect this file
current indentation.
Or maybe we should use the occasion to move everything to 2 spaces.

Changed to 4 spaces indentation. We should the whole conversion do in a separate bug. This one is already big enough.

Attachment #9228426 - Attachment is obsolete: true
Attachment #9228491 - Flags: review?(alessandro)
Comment on attachment 9228491 [details] [diff] [review] 1717637-calendar-remove-global.patch Review of attachment 9228491 [details] [diff] [review]: ----------------------------------------------------------------- Seems to be good, thanks. Maybe a try-run to be sure we're not introducing any regression? Pretty unusual but not impossible :D
Attachment #9228491 - Flags: review?(alessandro) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0ae48a8d8582
Remove unneeded global.css imports in calendar files and make remaining dialogs themeable. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 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: