Closed
Bug 274471
Opened 20 years ago
Closed 20 years ago
hardcoded colors in the Help Viewer
Categories
(SeaMonkey :: Help Viewer, defect)
SeaMonkey
Help Viewer
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: woehlkmp, Assigned: steffen.wilberg)
Details
Attachments
(2 files)
The help viewer is using black text with user-specified background color, making it difficult to read in some situations. According to the related bugs I managed to turn up (in particular, bug 149048 and bug 197472), this seems to be a regression from earlier versions which had user-color text on a white backround.
Comment 1•20 years ago
|
||
I assume you mean the background to the text in help topics, right? If that's what you mean, that's a problem I hadn't noticed before, but it's definitely present from a cursory glance at the CSS. I'll get around to fixing this sometime in the next month-ish when I have a little more time than I have now.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 2•20 years ago
|
||
Correct. Obviously this needs to be fixed in the distros too, but in the mean time, can you point me at the correct .css to modify so I can fix my own copy? It's debatably a step backwards, but since there are other colors being used, I'd vote for making the background white again... and toss in a:?? colors as well. Otherwise the blue headers risk becoming invisible as well. </mytwocents> Thanks.
| Assignee | ||
Comment 3•20 years ago
|
||
- removes color:black from the body. Bug 149048 already removed the background color. There's no need to specify color (or background-color) for normal text. - adds a rule for external https links. I just changed our u.m.o links to https to avoid a redirect. - removes the unused .makeLeftMargin
Assignee: jwalden+fxhelp → steffen.wilberg
Status: NEW → ASSIGNED
Attachment #168772 -
Flags: review?(jwalden+fxhelp)
Comment 4•20 years ago
|
||
Comment on attachment 168772 [details] [diff] [review] don't hardcode the text color, and take https links into account r=jwalden@mit.edu
Attachment #168772 -
Flags: review?(jwalden+fxhelp) → review+
| Assignee | ||
Comment 5•20 years ago
|
||
Checking in mozilla/toolkit/themes/pinstripe/help/helpFileLayout.css; /cvsroot/mozilla/toolkit/themes/pinstripe/help/helpFileLayout.css,v <-- helpFileLayout.css new revision: 1.5; previous revision: 1.4 done Checking in mozilla/toolkit/themes/winstripe/help/helpFileLayout.css; /cvsroot/mozilla/toolkit/themes/winstripe/help/helpFileLayout.css,v <-- helpFileLayout.css new revision: 1.5; previous revision: 1.4 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → FIXED
Summary: Help viewer; uses black text, user background => illegible → Help docs illegible with user background because text color is hardcoded
Target Milestone: --- → Firefox1.1
Comment 6•20 years ago
|
||
What about the :link:hover colour? Maybe we should change it to
:link:hover { color: -moz-activehyperlinktext; }| Assignee | ||
Comment 7•20 years ago
|
||
Yeah, that works fine, and is almost the same as red (it's #ee0000 instead of #ff0000): http://lxr.mozilla.org/seamonkey/source/layout/base/nsPresContext.cpp#177
| Assignee | ||
Comment 8•20 years ago
|
||
-moz-activehyperlinktext uses the color specified by the browser.active_color pref. Seamonkey does have UI for that, Firefox does not. That color is normally used when clicking a link (hold the mouse button to see this) and there's no style sheet overriding it. So using -moz-activehyperlinktext is much better than hardcoding red. If that is still the way we want to style hovered links, that is.
Comment 9•20 years ago
|
||
Help currently recognizes visited external links. If we want to continue to support this then perhaps we should style :visited:hover too.
| Reporter | ||
Comment 10•20 years ago
|
||
Meanwhile, can anyone help me out? I unzipped:
"skin/classic/help/helpFileLayout.css" (to "%chrome%/help/")
from "help.jar" in "%FF-install%/chrome" and changed the line in
"installed-chrome.txt" to:
"skin,install,url:resource:/chrome/help/skin/classic/help/"
Then I edited said file like such:
body {
margin: 2ex;
font-family: sans-serif;
font-size: 0.75em;
max-width: 120ex;
}
Except this has not fixed the problem. Any thoughts?
(I've restarted FF several times since.)| Assignee | ||
Comment 11•20 years ago
|
||
Matthew, delete chrome.rdf after modifying installed-chrome.txt. A simpler way is to put the modified file back into help.jar.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Help docs illegible with user background because text color is hardcoded → hardcoded colors in the Help Viewer
| Assignee | ||
Comment 12•20 years ago
|
||
How about this? See comment 8 about -moz-activehyperlinktext.
Attachment #169292 -
Flags: review?(jwalden+fxhelp)
Comment 13•20 years ago
|
||
Comment on attachment 169292 [details] [diff] [review] use -moz-activehyperlinktext for :link:hover and :visited:hover Makes sense to me. r=jwalden@mit.edu
Attachment #169292 -
Flags: review?(jwalden+fxhelp) → review+
| Assignee | ||
Comment 14•20 years ago
|
||
Checking in mozilla/toolkit/themes/winstripe/help/helpFileLayout.css; /cvsroot/mozilla/toolkit/themes/winstripe/help/helpFileLayout.css,v <-- helpFileLayout.css new revision: 1.6; previous revision: 1.5 done Checking in mozilla/toolkit/themes/pinstripe/help/helpFileLayout.css; /cvsroot/mozilla/toolkit/themes/pinstripe/help/helpFileLayout.css,v <-- helpFileLayout.css new revision: 1.6; previous revision: 1.5 done
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•20 years ago
|
Attachment #168772 -
Attachment description: patch → don't hardcode the text color, and take https links into account
| Reporter | ||
Comment 15•20 years ago
|
||
(In reply to comment #11) > Matthew, delete chrome.rdf after modifying installed-chrome.txt. A simpler way > is to put the modified file back into help.jar. Um... problem. Help is now totally gone; Help menu has 'prompte' and 'about' only... and there's some sort of error at the bottom of all my FF windows, now. Visible text is '<key id="key_openHelp" with a carrot pointing to the '<'. Before, I was getting an error (similarly illegible; window text (white) on bright yellow background) when I tried to bring up help that said something about "chrome://content/help/help.xul" having some error in the line '<key id="key_find"...'. As best I can tell, everything started breaking when I deleted chrome.rdf. Any thoughts other than reinstalling?
Updated•20 years ago
|
Flags: review+
Product: Firefox → Toolkit
Target Milestone: Firefox1.1 → ---
| Assignee | ||
Comment 16•20 years ago
|
||
Targetting bugs which were targetted to Firefox1.1 before the move to mozilla1.8beta2.
Target Milestone: --- → mozilla1.8beta2
Updated•18 years ago
|
Flags: in-testsuite?
Updated•9 years ago
|
Product: Toolkit → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•