Closed Bug 683811 Opened 13 years ago Closed 6 years ago

Location bar color is hardwired to text color / 2

Categories

(Firefox :: Address Bar, defect)

6 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: akkzilla, Unassigned)

References

(Depends on 1 open bug)

Details

I love the idea of highlighting the domain as firefox 6 does, but the way it does it makes the rest of the URL very difficult to read. So I went to figure out how to style it with CSS or an extension, so I could read my URLs without disabling this nice feature -- and discovered that I can't, because it's hardwired to the foreground color / 2 in C++ code (nsTextPaintStyle::GetURLSecondaryColor around line 3284 of nsTextFrameThebes.cpp).

Could it put a <span> around that part of the URL text and set the color with CSS? Or, if that isn't possible, fetch a color preference or set it in JS rather than C++ code?
Depends on: 256773
Depends on: 654411
It would be quite helpful if there was some way to apply some CSS to this, even if it's via some pseudo-element or so.
In my Walnut/Walnut2 themes using foregroundcolor/2 is just ugly and there is no way to specify which color to use for GetURLSecondaryColor. Could a "::" class be used for this, like ::-moz-placeholder?
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.