Closed Bug 1655568 Opened 4 years ago Closed 4 years ago

Make the Compose dialogs themeable

Categories

(Thunderbird :: Theme, task)

Tracking

(thunderbird_esr78 fixed, thunderbird80 fixed)

VERIFIED FIXED
81 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird80 --- fixed

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

(Whiteboard: [TM:78.2.0])

Attachments

(2 files, 4 obsolete files)

In composer we have a lot of dialogs that aren't themeable.

This should be all composer dialogs.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9166394 - Flags: review?(alessandro)
Comment on attachment 9166394 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

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

Great work, thanks for taking care of all these dialogs.

A couple of things I noticed:
- The buttons don't have the usual border radius, is that on purpose?
- All the dialogs open at the top left corner of the screen, is there anything we can do about it?

Also, the color picker dialog is very strange in the current state and I think we should update it slightly.
The preview box is misleading as it seems like a clickable element. Do we need that or can we consistently rely on the color button itself to show a color preview?
The color button has a different style from the one you made for the Folder Properties.
We should better align all those elements and make this dialog more digestible.
I'll attach a quick mock-up for it and you let me know if it's doable.

::: mail/components/compose/content/dialogs/EdInsertTable.xhtml
@@ +74,5 @@
>        </html:tr>
>      </html:table>
>      <spacer class="spacer"/>
>    </html:fieldset>
>    <spacer class="spacer"/>

Remove this spacer and also the one above since are not really necessary.

@@ +86,2 @@
>                  oninput="forceInteger(this.id)" />
>      <label value="&pixels.label;"/>

It would be nice if also the border input could be part of the table above.
Attachment #9166394 - Flags: review?(alessandro) → feedback+
Attached image color dialog.png

What do you think about this?
The smaller info text would use the .tip-caption class we implemented in the account manager.

(In reply to Alessandro Castellani (:aleca) from comment #2)

Comment on attachment 9166394 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

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

Great work, thanks for taking care of all these dialogs.

A couple of things I noticed:

  • The buttons don't have the usual border radius, is that on purpose?

Fixed the button border radius. This was because this dialogs don't load messenger.css and didn't get the variable. Added now the variable into themeableDialog.css.

Also, the color picker dialog is very strange in the current state and I
think we should update it slightly.
The preview box is misleading as it seems like a clickable element. Do we
need that or can we consistently rely on the color button itself to show a
color preview?

I updated the layout of the colour picker dialog. I commented the calls to ColorSwatch out to not get errors. Can you now adapt them to apply the colour from the input field to the ColorPicker?

::: mail/components/compose/content/dialogs/EdInsertTable.xhtml
@@ +74,5 @@

   </html:tr>
 </html:table>
 <spacer class="spacer"/>

</html:fieldset>
<spacer class="spacer"/>

Remove this spacer and also the one above since are not really necessary.

Removed

@@ +86,2 @@

             oninput="forceInteger(this.id)" />
 <label value="&pixels.label;"/>

It would be nice if also the border input could be part of the table above.

Moved to the table. I removed the fieldset and the title as this isn't needed here.

I also made changes to the EdTableProps.xhtml because some aligning was off and the previous/next buttons used additional images and labels.

Attachment #9166394 - Attachment is obsolete: true
Attachment #9166787 - Flags: review?(alessandro)
Comment on attachment 9166787 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

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

Looks good.
Adding the `SetColorSwatch` method.
Attachment #9166787 - Flags: review?(alessandro) → review+

Patch updated.
Can you give it a try?

Attachment #9166787 - Attachment is obsolete: true
Attachment #9166875 - Flags: review+
Attachment #9166875 - Flags: feedback?(richard.marti)
Comment on attachment 9166875 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

This works for the hash colours but when I enter blue like the example text shows, the ColorPicker doesn't change to blue. When closing the dialog, the blue is chosen.
Attachment #9166875 - Flags: feedback?(richard.marti)

Ah, I forgot about that, you're right, sorry.

Putting back the ColorPickerSwatch since we don't want to handle a massive array to match color strings to hex values.
I updated the style of the swatch to better distinguish it from the color button.
What do you think?

Attachment #9166875 - Attachment is obsolete: true
Attachment #9166918 - Flags: review?(richard.marti)
Comment on attachment 9166918 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

Yes, the best we can do.
Attachment #9166918 - Flags: review?(richard.marti) → review+

Patch based on Alessandro's last patch with rounded LastPickedColor bubble.

Attachment #9166918 - Attachment is obsolete: true
Attachment #9167112 - Flags: review+
Target Milestone: --- → 81 Branch
Comment on attachment 9167112 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

[Approval Request Comment]
User impact if declined: lessintegrated composer dialogs in dark mode
Testing completed (on c-c, etc.): almost on c-c
Risk to taking this patch (and alternatives if risky): low
Attachment #9167112 - Flags: approval-comm-esr78?
Attachment #9167112 - Flags: approval-comm-beta?

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/be017833e747
Make the Compose dialogs themeable. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Comment on attachment 9167112 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

[Triage Comment]
Approved for beta
Attachment #9167112 - Flags: approval-comm-beta? → approval-comm-beta+

Per conversation with Paenglab, we'll take all further theme changes in one shot in 78.2.0

Whiteboard: [TM:78.2.0]

Comment on attachment 9167112 [details] [diff] [review]
1655568-compose-dialogs-themeable.patch

[Triage Comment]
Approved for esr78

Attachment #9167112 - Flags: approval-comm-esr78? → approval-comm-esr78+

Looks good to me using 80.0b4 on Ubuntu 18.04.5 LTS.

Was the Message Security dialog intentionally skipped or just missed?

Flags: needinfo?(richard.marti)

Missed. Could you file a bug?

Flags: needinfo?(richard.marti)
Blocks: 1659865
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: