Closed Bug 152144 Opened 22 years ago Closed 26 days ago

quoted text color is hard-coded, conflicts with dark color schemes

Categories

(MailNews Core :: Composition, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1715361

People

(Reporter: bugZ, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

win32 build 2002061408, win98se (Classic) The color for quoted text in the compose window is apparently now hard-coded as "blue". This color does not work with all color schemes (see attached screen shot). It must be configurable as a pref.
I'd also like to have the color to be freely configurable, via a userContent.css maybe or even the UI.
Current hack in userContent.css: span[_moz_quote=true] { color: #ffc !important; } The real point here is hard-coding a particular color when it can easily conflict with other color choices made in Prefs|Appearance|Colors. If colored quoting in replies is desired (I really don't care, myself) then the color choice should be a pref, even if there's no UI for it. Prefs|Mail&Newsgroups|Composition would be a logical place, though.
-->varada
Assignee: ducarroz → varada
Yup, this needs to be configurable; confirmed on Solaris/SPARC. Many people don't want a special colour for quoted text.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
As far as I understand, the new hardcoded color was added in bug 83378, marking as a dependency.
Depends on: 83378
Keywords: access
Depends on: 133741
Jennifer could you give your opinions as to where you would like this pref to exist?
If its a visible pref, either in Message Display or Compose (Forwarding and Replying) Pref panel would be the right place. Would this control the blue line that appears when the user replies to a message w/the quoted text Or the, sometimes, blue sometimes grey) line that appears when opening a message w/quoted text Or both? http://www.mozilla.org/mailnews/specs/prefs/Preferences.html
Just a note: Varada and I have investigated this. This happens in trunk builds only not branch. We've seen it on the trunk linux build dated 20020614 too and both Classic and Modern themes.
Blocks: 154188
Regarding comment #3: span[_moz_quote=true] { color: #ffc !important; } Is it also possible to color deeper levels in different colors, like: > red red red >> green green green >>> blue blue blue
After some digging, I've found that editing mozilla-install-dir/res/html.css (wherever that is on your individual system) also works as a post-install hack, and fixes all profiles at once. For example, on my Win2k box it's "D:\Program Files\mozilla.org\Mozilla1.1\res\html.css". 10 seconds with vim (or whatever) to change "blue" to "inherit" on lines 86 and 90 (in my installation, Moz 1.1) and you're set, until the next release. BTW this bug makes all quoted text in themes that use light text + dark backgrounds unreadable.
taking all of varada's bugs.
Assignee: varada → sspitzer
Summary: new quoted text color is hard-coded (very bad) → quoted text color is hard-coded, conflicts with dark color schemes
*** Bug 193893 has been marked as a duplicate of this bug. ***
*** Bug 159088 has been marked as a duplicate of this bug. ***
In the duplicate, bug 152144 comment 13 has an even nicer CSS hack than the one in comment 10. I have to say, I would not characterize this bug as "major" but every time I change a severity, someone changes it back.
*** Bug 183390 has been marked as a duplicate of this bug. ***
The "even nicer CSS hack" (by me, haha) is not in bug #152144 comment #13 (which would be this very bug), but the duplicate bug #159088 comment #13.
See also bug 90315
Product: MailNews → Core
2227 preElement->SetAttribute(NS_LITERAL_STRING("_moz_quote"), 2228 NS_LITERAL_STRING("true")); 2229 if (quotesInPre) 2230 { 2231 // set style to not have unwanted vertical margins 2232 preElement->SetAttribute(NS_LITERAL_STRING("style"), 2233 NS_LITERAL_STRING("margin: 0 0 0 0px;")); 2234 } 2235 else 2236 { 2237 // turn off wrapping on spans 2238 preElement->SetAttribute(NS_LITERAL_STRING("style"), 2239 NS_LITERAL_STRING("white-space: pre;")); 2240 } Is there a reason the style set on lines 2232/2238 can't also include "color: somethingReadFromAPref", and then remove _moz_quote from html.css? Keep setting the _moz_quote attribute, since other code depends on it.
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Anything to do with color of text or Backgrounds should be in the appearance section of Preferences. Or buyout/license from the fellow That created "QuoteColors" and just have it made part of the UI.
QA Contact: esther → composition
Product: Core → MailNews Core
Blocks: tb-dark-mode
Severity: major → S3
Status: NEW → RESOLVED
Closed: 26 days ago
Duplicate of bug: 1715361
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: