Closed Bug 1619146 Opened 4 years ago Closed 4 years ago

Let the emailWizard use the dark theme

Categories

(Thunderbird :: Theme, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 76.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(3 files, 4 obsolete files)

When we let the emailWizard use the dark theme when the system theme is dark it looks more integrated.

Alessandro, what do you think about this? I created a new stylesheet, themeableDialog.css which can be used also for other dialogs.

Assignee: nobody → richard.marti
Attachment #9130030 - Flags: review?(alessandro)

Same patch without special casing btn-link.

Attachment #9130030 - Attachment is obsolete: true
Attachment #9130030 - Flags: review?(alessandro)
Attachment #9130039 - Flags: review?(alessandro)

Made the input fields using always the variables for background- and text colour. Sorry for the spam.

Attachment #9130039 - Attachment is obsolete: true
Attachment #9130039 - Flags: review?(alessandro)
Attachment #9130185 - Flags: review?(alessandro)
Comment on attachment 9130185 [details] [diff] [review]
1619146-emailWizard-dark-theme.patch

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

Hey, this is great, I love it so much!
I did a review with screenshots as it was easier to track everything, I hope you don't mine.
Overall this is pretty good and I like the overall feeling and outcome, I think this is the way to go.

Before spending too much time on this, let's ping Magnus and see what he thinks as I remember he was a big proponent of keeping the native elements and let the OS style them.
I'm personally inclined on handling custom element with this solution.
Attachment #9130185 - Flags: review?(alessandro) → feedback+

The accountWizard, with and without the patch, uses already non-native colours. When the Linux theme is dark, the dialog is still light with some dark parts.

I could make the default theme variables use system colours and when a light TB theme is set use the actual colours and with a dark TB theme use the dark colours.

Oh yeah, sorry if what I wrote was confusing, when I said

I'm personally inclined on handling custom element with this solution.

I was referring to THIS patch, to your solution, and not native styling.

No, it wasn't confusing. It was only a note that we should look at this issue too because Linux has no switch to use the lwt-default-theme-in-dark-mode and the dialog doesn't switch to the dark mode except with a dark TB theme.

This patch should address all review comments.

Additionally I removed all unused CSS code and made the dialog use the system default colours when no theme is enabled.

Attachment #9130185 - Attachment is obsolete: true
Attachment #9130587 - Flags: feedback?(alessandro)
Comment on attachment 9130587 [details] [diff] [review]
1619146-emailWizard-dark-theme.patch

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

This looks super slick, great work.
Just a couple of minor fixes and then it's ready for a full review from Magnus.

::: mail/themes/linux/mail/themeableDialog.css
@@ +21,5 @@
> +
> +menulist[is="menulist-editable"][editable="true"] {
> +  -moz-appearance: none;
> +  margin-inline-end: 4px;
> +  padding: 0;

The default menulist has 1px border transparent which is causing a weird blurred effect around this element (see screenshot).
Maybe we should remove the border entirely from an editable menulist since we're handling it in the child input.

@@ +25,5 @@
> +  padding: 0;
> +}
> +
> +menulist[is="menulist-editable"][editable="true"] .menulist-input {
> +  padding: 3px 4px;

If we remove the menulist default border, this padding can be 4px like the other inputs.
Attachment #9130587 - Flags: feedback?(alessandro) → feedback+

As you can see the menulist items have an extra blurred border compared to the sharp borders of the input fields.

Fixed the border thing. Magnus, what do you think about this? It's an improvement as it makes the dialog use more system colours to better fit but still uses custom widget appearance.

Attachment #9130587 - Attachment is obsolete: true
Attachment #9130815 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9130815 [details] [diff] [review]
1619146-emailWizard-dark-theme.patch

I'm giving this a ui-r+
Attachment #9130815 - Flags: ui-review+
Comment on attachment 9130815 [details] [diff] [review]
1619146-emailWizard-dark-theme.patch

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

LGTM! r=mkmelin
Attachment #9130815 - Flags: review?(mkmelin+mozilla) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird 76.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/05c780359ee8
Let the emailWizard use the dark theme. ui-r=aleca, r=mkmelin DONTBUILD

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: