Closed Bug 1608344 Opened 6 years ago Closed 6 years ago

Adjust some colors for the dark theme

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
68.4.2

People

(Reporter: gzm, Assigned: Paenglab)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Having these kinds of elements:

  1. Started task and event with passed due date and major priority
  2. Started task and event with due date today and normal priority
  3. Started task and event with futur due and minor priority

Actual results:

  1. In the main agenda panel, an event with a minor priority appears with a light background while the others types (major and normal priorities) are correctly using the dark background
  2. in the right side panel, tasks with major and minor priorities are displaying using the same shade of red and green as the light theme: these colors lack of contrast with the dark theme and make the text difficult to read (note that if you select one at once, white texts on red or green backgrounds are more readable)

Expected results:

  1. the light background of the minor priority event should be fixed to use the same dark background as others kind of events
  2. the shades of green and red used for certain types of tasks (due or in progress) should probably be revised to improve the contrast with the dark theme (or perhaps use different background tints to be better highlighted when the task is not selected)

I played around with colors some months ago and this was something that seemed to work better for me.
Green https://webaim.org/resources/contrastchecker/?fcolor=00BD00&bcolor=38383D
Red https://webaim.org/resources/contrastchecker/?fcolor=FF7A7A&bcolor=38383D
Blue (for icon) https://webaim.org/resources/contrastchecker/?fcolor=4DA6FF&bcolor=38383D

To apply the colors locally using userChrome.css I used the following rules:

.calendar-task-tree > treechildren::-moz-tree-cell-text(inprogress) {
color: #00BD00 !important;
}

.calendar-task-tree > treechildren::-moz-tree-cell-text(overdue) {
color: #FF7A7A !important;
}

Considering a modification of the userchrome.css is interesting.
Maybe the problem of the light background for low priority task could be also corrected by this kind of settings.

Component: Theme → General
Product: Thunderbird → Calendar
Version: 68 → unspecified

I'm using Stefan's colours. For the low priority events I've set a reduced opacity instead of the grey text and the weird background.

Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9120360 - Flags: review?(paul)

Patch for beta and ESR.

Attachment #9120361 - Flags: approval-calendar-esr?(paul)
Attachment #9120361 - Flags: approval-calendar-beta?(paul)
Comment on attachment 9120360 [details] [diff] [review] 1608344-dark-task-event-tree-colours.patch Review of attachment 9120360 [details] [diff] [review]: ----------------------------------------------------------------- Changes look good. I might use css variables for the new colors, but up to you.
Attachment #9120360 - Flags: review?(paul) → review+
Attachment #9120361 - Flags: approval-calendar-esr?(paul)
Attachment #9120361 - Flags: approval-calendar-esr+
Attachment #9120361 - Flags: approval-calendar-beta?(paul)
Attachment #9120361 - Flags: approval-calendar-beta+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/7c322e55ef6b
Adjust Task and Event tree colours for the dark theme. r=pmorris

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

Attachment

General

Creator:
Created:
Updated:
Size: