Closed Bug 1676680 Opened 4 years ago Closed 4 years ago

Unify/simplify the dark theme selectors

Categories

(Thunderbird :: Theme, task)

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
84 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(1 file, 1 obsolete file)

At https://searchfox.org/comm-central/source/mail/themes/shared/mail/messenger.css#118-131 we many lines to select the elements. It's possible to simplify this selectors.

I'm now using the classes .full-themeable for elements that apply full- and LW-dark themes and .full-brighttext-themeable for elements that only apply to full themes (for example the messgeHeader). There are many files touched because of the class name changes.

In messengercompose.css I moved more to the shared file. And I moved quickFilterBar.css from content to the shared themes folder.

When you don't like the class names I can change them. But you need to propose new ones. ;-)

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

Nice, this is a great improvement and will help us keep our sanity when in need of themeing new elements.

What about updating the class names to .themeable-full and .themeable-brighttext? I think we should use the "static" part of the class name at the beginning, and then concatenate variations.

I know our current "approach" in naming CSS is the other way around, (eg ***-toolbar, or ***-button) but I think we should start using this other approach.

Same patch with updated class names.

Attachment #9187180 - Attachment is obsolete: true
Attachment #9187180 - Flags: review?(alessandro)
Attachment #9187187 - Flags: review?(alessandro)
Comment on attachment 9187187 [details] [diff] [review] 1676680-dark-theme-selector.patch Review of attachment 9187187 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks
Attachment #9187187 - Flags: review?(alessandro) → review+
Target Milestone: --- → 84 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/e3b62c0153ff
Unify/simplify the dark theme selectors. r=aleca

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

Attachment

General

Created:
Updated:
Size: