Closed Bug 1728491 Opened 3 years ago Closed 3 years ago

Somehow improve propagation of UI density setting

Categories

(Thunderbird :: Theme, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
94 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

The main window has one implementation of gUIDensity, which updates other windows, and I'm about to add another implementation in bug 1727872 because the Address Book tab doesn't get updated automatically.

Apart from the obvious duplication problem, the main window object would add a new observer for every main window that opens, and each of them would try to update all other windows. We should centralise it all somewhere in a JSM so only one observer is needed, and either figure out how to update all windows and tabs automatically, or provide a way to register for updates (like colorTracker in calViewUtils.jsm).

Blocks: tb91found
Version: unspecified → Thunderbird 91

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/997d459216f8
Put all the UI density code in one module. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Regressions: 1730555
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: