Opened 10 years ago

Closed 16 months ago

Last modified 16 months ago

#2303 closed defect (wontfix)

User-specific background colours for inline diffs (to support colourblind)

Reported by: Alexander Kriegisch Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: minor Keywords: diff, colour, CSS
Cc: Trac Release: 0.10


I suffer from a slight red-green colourblindness. I rarely notice it, because I recognise most reds and greens. The light red and green in inline diff backgrounds, though, are hardly discernible for me. Well, I can change the red to a darker shade, so the brightness is different for both colours, making it easier for me to really recognise red as red and differentiate it from the light green for added lines.

The thing is that most other users do not like this and that the contrast to the darker red for changed characters within one line becomes weaker.

My question is: Is there any way I can tweak Trac into making those colours user-configurable? I would even welcome hacky ways of doing it, e.g. setting a local cookie or something. An option for changing the settings or switching a toggle in the user profile would be even nicer.

I do not need theming, just a little customisation tip. It is nice that I can override CSS formatting globally, but doing it in a user-specific way is something else which does not seem to be supported out of the box. I might be wrong, though, because I am a Trac newbie.

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by Martin Scharrer

You could use multiple alternative CSS style files which can be added using the AddHeadersPlugin or use a browser which allows you to override site specific CSS settings.

comment:2 Changed 9 years ago by Alexander Kriegisch

I solved the problem then via local CSS override. It works in Firefox as well as IE and Opera, it is just a bit hard to find in each browser, because the customisation is different in each of them.

What I basically did, was put this code into userContent.css (for Firefox):

table.inline tbody.mod td.l, table.inline tbody.rem td.l { background: #fbb !important }

The same code goes into the corresponding CSS files for IE and Opera.

comment:3 Changed 9 years ago by Ryan J Ollos

Summary: User-specific background colours for inline diffsUser-specific background colours for inline diffs (to support colourblind)

comment:4 Changed 16 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

comment:5 Changed 16 months ago by anonymous

LOL, thanks

comment:6 Changed 16 months ago by Ryan J Ollos

Closing the ticket wasn't intended to be dismissive of the problem. Just working on closing old tickets, and there's no actionable item I can see here, thus no reason to keep it open.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain anybody.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.