Closed
Bug 62678
Opened 25 years ago
Closed 25 years ago
View source uses background from prefs and hardcoded text color
Categories
(SeaMonkey :: UI Design, defect, P3)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(3 files)
|
579 bytes,
patch
|
Details | Diff | Splinter Review | |
|
684 bytes,
patch
|
Details | Diff | Splinter Review | |
|
747 bytes,
patch
|
Details | Diff | Splinter Review |
BUILD: Linux build 2000-12-05-08 and Win98 build 2000-12-11-12
STEPS TO REPRODUCE:
1) Set the default background color to black in preferences -> appearance ->
colors. Set the default foreground color to white.
2) go to any web page
3) view the source
ACTUAL RESULTS:
Source is shown black on black
EXPECTED RESULTS:
Source is shown white on black or black on some hardcoded background color.
NOTES:
Since we have an option for syntactic highlighting, it seems that we should not
be pulling the background color from prefs at all here -- we're hardcoding the
text colors, so we should hardcode the background. If we decide to pull the
background and text color from prefs, we need a prefs panel to configure the
syntax highlighting colors as well.
Comment 1•25 years ago
|
||
odd, i cannot repro this. i set text color to white, background to black, as
well as select "always use my chosen colors"; i turn off windows colors pref on
win32. results: the source window has white text on a black background.
winNT and linux [2000.12.11.12]
mac [2000.12.12.08]
Assignee: don → vishy
| Assignee | ||
Comment 2•25 years ago
|
||
If I choose "always use my chosen colors" then view source is indeed displayed
white on black (and the syntax highlighting disappears).
If I have "use the colors and background specified by the webpage" then the bug
is as described.
Looks like the issue is that the "page" (view source window) is specifying a
font color but not a background color.
Comment 3•25 years ago
|
||
ah! making sure the "always use the web page colors" does the trick. vrfy'd on
mac, linux and winnt. thx for the clarification!
cc'ing jce and akkana who're on bug 52154, where view source coloring was
implemented. any thoughts, guys?
Hardware: PC → All
Comment 4•25 years ago
|
||
The fix for this should be to switch to using a stylesheet or to switch back to
XML based view source as we used to have. Either way, the fix should involve
using an external stylesheet and then making the stylesheet groovy. :-)
nav triage team:
Won't stop beta1 for this, but, yes, would be nice to fix this with a
stylesheet.
Keywords: nsbeta1-
Marking nsbeta1- bugs as future to get off the radar
Target Milestone: --- → Future
| Assignee | ||
Comment 7•25 years ago
|
||
This stylesheet is being created in bug 74486. I'll fix this once I have that
fixed....
Assignee: vishy → bzbarsky
Depends on: 74486
| Assignee | ||
Comment 8•25 years ago
|
||
| Assignee | ||
Comment 9•25 years ago
|
||
How is this? reviews?
Comment 10•25 years ago
|
||
White? Why not use system colors, like {background-color: window;} to use the
system's default window color? I guess the user could set that to the same color
that we use for the text too, but then maybe our text color should be
'windowtext' instead of black?
| Assignee | ||
Comment 11•25 years ago
|
||
OK, we can certainly do window and windowtext. I suppose that a user could set
the "window" color to something that's the same as one of our highlighting
colors... That's why I was setting the color to "white" (something we know
should work).
Ultimately, we want some way of letting users configure all these colors if they
want, I guess. Are there system colors that usefully correspond to what we are
trying to do? I can't find any...
bug 52154 has a UI spec for a way to select the view source colors. Do we want
to go ahead and implement something like that?
Comment 12•25 years ago
|
||
i'm pretty sure we have a bug to alter the way highlight works, but until then
let's use window and windowtext.
| Assignee | ||
Comment 13•25 years ago
|
||
Comment 14•25 years ago
|
||
Nice Boris! [s]r=attinasi
Comment 16•25 years ago
|
||
fix checked in
Comment 17•25 years ago
|
||
Resolving as FIXED to get it off the radars.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
This is still causing problems for some users -- see bug 67448. The highlight
colors are really designed to be used only with black text on a light grey or
white background -- so why don't you just make that explicit? One of the golden
rules of specifying colors in CSS is that you should always specify foreground
and background together. Here you're breaking that by mixing the user's
background color with your specified foreground for the highlight colors.
Reopening (since the summary is still true, only you've fixed the most common
one of the 10 or so foreground colors).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 67448
| Assignee | ||
Comment 19•25 years ago
|
||
I just tried out some GTK themes. David is right -- the highlighting still
breaks badly for most of these.
So, attaching another patch. This does two things:
1) Use "white" for background and "black" for text
2) Adds "monospace" as a fallback for the font family.
Keywords: mozilla0.9.1,
review
Target Milestone: Future → mozilla0.9.1
| Assignee | ||
Comment 20•25 years ago
|
||
r=dbaron, although I thought -moz-fixed was basically the same as monospace
except for the font sizing (and inheritance?).
| Assignee | ||
Comment 22•25 years ago
|
||
Well... on my setup they seem to look nothing alike. So....
Comment 23•25 years ago
|
||
Hey Boris, sorry I sent you off on a bad path with my suggestion to use
windowColor and windowText - I won't make any more suggestions (for this bug)
unless specifically asked :) sr=attinasi
btw: -moz-fixed and monospace should both be fixed-width, -moz-fixed is special
because it cannot be changed via a pref. and is handled specially in some
internals of layout.
Comment 24•25 years ago
|
||
Fix checked in per request.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 25•25 years ago
|
||
vrfy fixed: 2001.05.18.13 comm bits - linux, winnt, mac.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•