Closed Bug 1619809 Opened 4 years ago Closed 4 years ago

UI glitches in Preferences tab subdialogs

Categories

(Thunderbird :: Theme, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 75.0

People

(Reporter: aleca, Assigned: Paenglab)

Details

Attachments

(4 files, 3 obsolete files)

Attached image font-dialog.png

I stumbled upon a couple of UI glitches in the subdialogs of the Preferences tab on daily.

The Fonts & Encoding subdialog (General > Language & Appereance > Fonts & Colors > Advanced) shows a blown out font size in the first row, and the content doesn't fit in the constraints of the dialog.

The other issue is related to the :focus effect on a richlistbox noticeable in the Daily Language Settings sudialog (General > Language & Appereance > Language > Set Alternatives...). This issue presents itself in other dialogs, but is not always consistent.

Attached image richilistbox-focus.png
Attached patch 1619809-fonts-h2-to-legend.patch (obsolete) — Splinter Review

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

I stumbled upon a couple of UI glitches in the subdialogs of the Preferences tab on daily.

The Fonts & Encoding subdialog (General > Language & Appereance > Fonts & Colors > Advanced) shows a blown out font size in the first row, and the content doesn't fit in the constraints of the dialog.

I fixed the font size. This was missed in bug 1612776.

I don't see the dialog size issue. Maybe this is again a scaling issue.

The other issue is related to the :focus effect on a richlistbox noticeable in the Daily Language Settings sudialog (General > Language & Appereance > Language > Set Alternatives...). This issue presents itself in other dialogs, but is not always consistent.

On Windows, the richlistboxes in the dialogs don't have the focus border. This happens on all richlistboxes in dialogs on Linux and Mac.

Attachment #9130765 - Flags: review?(alessandro)
Attached image font-subdialog.gif
Comment on attachment 9130765 [details] [diff] [review]
1619809-fonts-h2-to-legend.patch

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

Thanks for jumping on this so quickly, but it doesn't completely solve the problem.
The `legend` tag reduces the font size but it's not aligned with the content underneath. Is it possible?

I attached a screen record to show you what happens to the dialog.
It seems like the width of the dialog is calculated before the list of available fonts fills up the menulists, and that causes the content to grow.
Attachment #9130765 - Flags: review?(alessandro) → review-

Have you tried to make the dialog wider then close it and re-open it?

About the aligning: My patch restores only the state pre bug 1612776.

This part is the title for the block below. Aligning it would make the dialog wider on some locales. German has "Schriftarten für". We could also go the FX way with the menulist below the label but this would make the dialog taller as it is already. Perhaps we should move the Font Control and the Text Encoding part into the main page. What do you think?

Attached patch 1619809-fonts-h2-to-legend.patch (obsolete) — Splinter Review

Alessandro, can you try this patch if it solves the width issue? I'm using in this patch the FX grid implementation.

Attachment #9130888 - Flags: feedback?(alessandro)
Attached patch 1619809-fonts-h2-to-legend.patch (obsolete) — Splinter Review

Used the FX display: grid approach and aligned the legend row with the block below.

Attachment #9130765 - Attachment is obsolete: true
Attachment #9130888 - Attachment is obsolete: true
Attachment #9130888 - Flags: feedback?(alessandro)
Attachment #9130900 - Flags: review?(alessandro)
Comment on attachment 9130900 [details] [diff] [review]
1619809-fonts-h2-to-legend.patch

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

This is perfect, thank you so much!
Can you update the commit message to:
"Bug 1619809 - Use display: grid; and replace <html:h2> with <html:legend> in fonts.xhtml. r=aleca"
Attachment #9130900 - Flags: review?(alessandro) → review+

Updated commit message.

Attachment #9130900 - Attachment is obsolete: true
Attachment #9130986 - Flags: review+

Fixed a linting error, will land soon.

Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird 75.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/65c64393ba6d
Use display: grid; and replace <html:h2> with <html:legend> in fonts.xhtml. 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: