Closed Bug 1644730 Opened 4 years ago Closed 4 years ago

[macOS] Missing Sort Arrow when using Dark Theme

Categories

(Thunderbird :: Theme, defect)

defect

Tracking

(thunderbird78+ fixed)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird78 + fixed

People

(Reporter: u664705, Assigned: Paenglab)

Details

Attachments

(5 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

On macOS, set the appearance to dark in system preferences or change the default theme in Thunderbird by enabling the dark theme.

Actual results:

When sorting a table by a specific column (e.g. by date), the arrow that indicates the sort direction is not visible.
I've tried changing the background color of the cell to red in order to verify, that the arrow icon does not simply have the same color. It seems to be gone. See the attached screenshots.

Expected results:

There should be an arrow ;)

Added additional image

Added additional image showing the dark theme without modification

Attached patch 1644730-treecol-arrow.patch (obsolete) — Splinter Review

Windows uses already SVG icons from toolkit. Only Linux and Mac need this.

Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9156046 - Flags: review?(alessandro)
Comment on attachment 9156046 [details] [diff] [review] 1644730-treecol-arrow.patch Review of attachment 9156046 [details] [diff] [review]: ----------------------------------------------------------------- The implementation is correct, but the icons are not unfortunately. The edges of the icons are not aligned, and the curvature of the stroke is not smooth, causing a very strange but noticeable blurry misalignment (zoomed screenshot coming). Also, we shouldn't use 2 identical vertically mirrored icons for the same thing. Let's have 1 icon called `treecol-twisty.svg` and use `transform: rotate(180deg);` the sorting changes.
Attachment #9156046 - Flags: review?(alessandro) → feedback+

The misaligned edges of the twisty icon.

I just found out that we have that kind of icon in m-c already: chrome://global/skin/icons/arrow-dropdown-12.svg

This issue isn't visible with LowRes screen. Using now arrow-dropdown-12.svg and arrow-up-12.svg for all platforms to fix the bad icon also on Windows.

Attachment #9156046 - Attachment is obsolete: true
Attachment #9156177 - Flags: review?(alessandro)
Comment on attachment 9156177 [details] [diff] [review] 1644730-treecol-arrow.patch Review of attachment 9156177 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks. This is a good candidate for a beta uplift.
Attachment #9156177 - Flags: review?(alessandro) → review+
Comment on attachment 9156177 [details] [diff] [review] 1644730-treecol-arrow.patch [Approval Request Comment] User impact if declined: on Linux and Mac, user don't see a sort arrow with dark theme Testing completed (on c-c, etc.): soon on c-c Risk to taking this patch (and alternatives if risky): low
Attachment #9156177 - Flags: approval-comm-beta?
Target Milestone: --- → Thunderbird 79.0
Component: Untriaged → Theme

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0ebd7b863fea
Use a SVG for the treecol sort arrows to make them themeable. r=aleca

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

As I am fairly new to Thunderbird development, I am curious how this bug came to be. I thought that themes would just change colors and appearance using CSS. Also, when inspecting the column using the debugger on a light theme, I was not able to identify the icon it self. I guess it is applied using CSS? However, was not able to find the specific CSS rule for this in the light theme either. If you got some spare time and don't mind explaining to a novice in Thunderbird development, I'd be grateful for an explanation ;)

You haven't seen a icon because the native (OS) appearance has none. This is also why the native dark arrow isn't visible. With -moz-appearance: none; I disabled the native appearance and used then our own icon.

Comment on attachment 9156177 [details] [diff] [review] 1644730-treecol-arrow.patch Approved for beta
Attachment #9156177 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: