Closed Bug 1655080 Opened 4 years ago Closed 3 years ago

Make the Tag- and Sanitize dialog themeable

Categories

(Thunderbird :: Theme, task)

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
Thunderbird 80.0
Tracking Status
thunderbird_esr78 --- fixed

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

(Whiteboard: [TM:78.2.0])

Attachments

(3 files, 3 obsolete files)

The new tag and the sanitize dialogs aren't themeable.

Attached file and added some new labels (obsolete) —

I changed also the appearance

  • tag dialog: colour picker below the textbox and added the label "Color"
  • sanitize dialog: removed the expander as with only three elements it's not needed and gave them a new title "History" like FX has.

Both changes aren't compatible for 78. What do you think should we do? Only add the themeability? Or add the changes but without labels?

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9165947 - Flags: review?(alessandro)

In tag dialog I had to change the width to min-width. Found this while trying to convert the patch for TB 78.

I also found, that the German translation uses instead of only "Label" it uses "Label and correlating Color". This makes it a bit tricky to add a label with "Color".

I also found a bug on https://searchfox.org/comm-central/rev/1129249f43acb470071711b9c25b8f3743ab8f97/mail/locales/en-US/messenger/preferences/preferences.ftl#392. It has set .label instead of .value which ends in not showing the label.

Attachment #9165947 - Attachment is obsolete: true
Attachment #9165947 - Flags: review?(alessandro)
Attachment #9165965 - Flags: review?(alessandro)
Comment on attachment 9165965 [details] [diff] [review]
1655080-tag-sanitize-themeable.patch

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

Thanks for this, just some nits.

There's a dash after the Tag in the commit message, is that intentional?

I don't think we can uplift this due to string changes, right?

::: mail/base/content/newTagDialog.xhtml
@@ +28,5 @@
>    <linkset>
>      <html:link rel="localization" href="messenger/preferences/new-tag.ftl"/>
>    </linkset>
>  
> +  <box style="display: grid; grid-template-columns: auto 1fr;">

Add an `align-items: center;` here otherwise the Tag Name label will be top aligned.
Wouldn't be better to have this as a class instead of inline?

::: mail/base/content/sanitize.xhtml
@@ +69,5 @@
>          <spacer flex="1"/>
>        </vbox>
>  
> +    <label id="historyGroupLabel" value="&historyGroup.label;"/>
> +    <vbox id="historyGroup">

You could add a class indent for the checkboxes, or at least align them to the label above if you think the indentation is too much.

::: mail/base/content/sanitizeDialog.css
@@ +38,5 @@
> +#historyGroupLabel {
> +  margin-block: 16px 4px;
> +  margin-inline-start: 4px;
> +  font-size: 1.14em;
> +  font-weight: bold;

Let's go with a weight of 600. We're not in the preferences so the full bold it's a bit too aggressive.
Attachment #9165965 - Flags: review?(alessandro) → review+

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

Comment on attachment 9165965 [details] [diff] [review]
1655080-tag-sanitize-themeable.patch

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

I don't think we can uplift this due to string changes, right?

No, I'll do a patch without the string changes.

::: mail/base/content/newTagDialog.xhtml

  • <box style="display: grid; grid-template-columns: auto 1fr;">

Add an align-items: center; here otherwise the Tag Name label will be top
aligned.
Wouldn't be better to have this as a class instead of inline?

I added the align-items. I applied the style directly because this is a small dialog without its own stylesheet.

::: mail/base/content/sanitize.xhtml
@@ +69,5 @@

     <spacer flex="1"/>
   </vbox>
  • <label id="historyGroupLabel" value="&historyGroup.label;"/>
  • <vbox id="historyGroup">

You could add a class indent for the checkboxes, or at least align them to
the label above if you think the indentation is too much.

Indented 10px.

::: mail/base/content/sanitizeDialog.css
@@ +38,5 @@

+#historyGroupLabel {

  • margin-block: 16px 4px;
  • margin-inline-start: 4px;
  • font-size: 1.14em;
  • font-weight: bold;

Let's go with a weight of 600. We're not in the preferences so the full bold
it's a bit too aggressive.

Done.

Attachment #9165965 - Attachment is obsolete: true
Attachment #9165990 - Flags: review+
Target Milestone: --- → Thunderbird 80.0

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/eeb76bd9e147
Make the Tag and Sanitize dialog themeable. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Under https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=4abe8d4112073c53f4de199304b2fa1c8ce2ba2c you can find a beta build with a special patch without the string changes and without the reorganization of the tag dialog.

What do you think, can we go this way for beta and ESR?

Flags: needinfo?(alessandro)

Can you upload that patch here and ping me for a review?
So I can load it on my local 78 version and test it.

Flags: needinfo?(alessandro)

Reopening this as we need a 78 variation of this patch without string changes.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9165990 - Attachment filename: 1655080-tag-sanitize-themeable.patch → 1655080-tag-sanitize-themeable[checked-in].patch
Attachment #9165990 - Attachment description: 1655080-tag-sanitize-themeable.patch → 1655080-tag-sanitize-themeable[checked-in].patch

Patch for beta.

Attachment #9166109 - Flags: review?(alessandro)

Patch for ESR

Attachment #9166110 - Flags: review?(alessandro)
Attached image German-dialogs-ESR.png

How it looks on a German ESR.

Attachment #9166109 - Flags: review?(alessandro) → review+
Attachment #9166110 - Flags: review?(alessandro) → review+
Comment on attachment 9166110 [details] [diff] [review]
1655080-tag-sanitize-themeable-ESR.patch

[Approval Request Comment]
User impact if declined: lesser integration of dialogs on dark systems
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low
Attachment #9166110 - Flags: approval-comm-esr78?
Comment on attachment 9166109 [details] [diff] [review]
1655080-tag-sanitize-themeable-beta.patch

With today's uplift is no beta version needed.
Attachment #9166109 - Attachment is obsolete: true

Will take this in 78.1.1 or later, after the patch has gone through beta

Whiteboard: [TM:78.1.1]

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

Whiteboard: [TM:78.1.1] → [TM:78.2.0]
Regressions: 1657831

Comment on attachment 9166110 [details] [diff] [review]
1655080-tag-sanitize-themeable-ESR.patch

[Triage Comment]
Approved for esr78

Attachment #9166110 - Flags: approval-comm-esr78? → approval-comm-esr78+
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
Regressions: 1736392
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: