Closed Bug 1625987 Opened 4 years ago Closed 4 years ago

Make the customize window themeable

Categories

(Thunderbird :: Theme, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 76.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(2 files, 3 obsolete files)

With the themeableDialog.css we can make the customize window themeable.

Alessandro, what do think about this?

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

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

This is almost perfect, just a couple of changes we should implement.

Let's convert the `titlebarSettings` to an `hbox` and give some spacing between the 2 checkboxes.
Also, we should move this container to the left and have these checkboxes as first options.

The separator "groove" doesn't look great and it's too thick compares to the rest of the style, I think we should remove that completely.
We should also have `Restore Default Set` and `Done` inline aligned to the right.
I don't think we should worry too much about long strings in l10n as this dialog is realizable and we have plenty of space.

I'm attaching a screenshot with the reordered items.

::: mail/themes/linux/mail/customizeToolbar.css
@@ +5,1 @@
>  #instructions {

Let's update this style to be more consistent with the rest of the prefs.
#instructions {
    font-weight: 600;
    font-size: 1.2em;
    margin-block: 5px 10px;
}
Attachment #9136794 - Flags: review?(alessandro) → feedback+
Attached image customize.png

What do you think?

Looks good, but could give problems in the width with locales with long labels.

Okay. Needs bug 1625881 applied first.

On Linux and Windows it worked with all on one line, but on Mac the panel isn't resizeable and a part of the button is cut off.

Attachment #9136794 - Attachment is obsolete: true
Attachment #9136868 - Flags: review?(alessandro)
Comment on attachment 9136868 [details] [diff] [review]
1625987-customize-themeable.patch

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

Let's update the `showTitlebar.label` and `extraDragSpace.label` to remove the "Show" word as the on/off nature of the checkbox properly explains the context.
Shorter strings can help us save some vital space.

Indeed on macos we could have problems due to the non-resizable nature.
What do you think about adding an overflow-auto to the #main-box element?
It's a bit dirty but it will take care of those edge cases with longer strings, and it would be temporary as we were considering with Magnus to transition this to a full page takeover instead of a dialog.

What do you think?

::: common/src/customizeToolbar.xhtml
@@ +74,5 @@
>          ondrop="onPaletteDrop(event)"/>
>  
> +  <hbox id="buttonBox" align="center">
> +#ifndef MOZ_SUITE
> +    <vbox id="titlebarSettings" hidden="true">

This should be an hbox

@@ +79,5 @@
> +      <checkbox id="showTitlebar" oncommand="updateTitlebar();" label="&showTitlebar.label;"/>
> +      <checkbox id="showDragSpace" oncommand="updateDragSpace();" label="&extraDragSpace.label;"/>
> +    </vbox>
> +#endif
> +    <label id="modelistLabel" value="&show.label;"/>

We can also remove this "Show:" label and add an aria-label to the menulist that says something like "Toolbar button style" for a11y.
Attachment #9136868 - Flags: review?(alessandro) → feedback+

Like discussed on Matrix.

Attachment #9136868 - Attachment is obsolete: true
Attachment #9136892 - Flags: review?(alessandro)

Now with hbox instead only box.

Attachment #9136892 - Attachment is obsolete: true
Attachment #9136892 - Flags: review?(alessandro)
Attachment #9136903 - Flags: review?(alessandro)
Comment on attachment 9136903 [details] [diff] [review]
1625987-customize-themeable.patch

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

Awesome, thanks.
Attachment #9136903 - Flags: review?(alessandro) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8109a7663586
Make the customize window themeable. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 76.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: