Open Bug 334586 Opened 18 years ago Updated 2 years ago

Hook FAYT highlight color up to system prefs

Categories

(Core :: Widget: Cocoa, defect)

PowerPC
macOS
defect

Tracking

()

People

(Reporter: alqahira, Unassigned)

References

()

Details

FAYT currently uses the default FAYT highlight color while Find uses the user's system highlight color.

We should hook the FAYT highlight color pref into whatever we use to grab the highlight color from the System Prefs.

user_pref("ui.textSelectBackgroundAttention", "#rrggbb"); // where rrggbb is the hex color you want for found text.
This only happens when FAYT is not timed-out (is "active", in other words). There is, however, a bug in the timeout, at least on my system, which I think I reported.

cl
Target Milestone: Camino1.6 → ---
Taking so that I can look into this for 1.6.
Assignee: nobody → cl-bugs
Status: NEW → ASSIGNED
I totally forgot about this.

http://www.cocoadev.com/index.pl?NSColor

may be useful, along with |selectedTextBackgroundColor|.

We may want to set up a listener for the change notification too, unless we'd prefer to ignore that pref entirely (although I'm not sure how difficult that would be; i.e., how deep into Core code that colour is) and just use the system highlight colour to begin with.
Hrm. Instead of using a pref, is there any reason why Mac widget code doesn't just pull the system highlight colour already (in /widget/src/cocoa/nsLookAndFeel.* )?

Josh, should we just kick this to Core?
I'm gonna kick this to widget to keep it on Josh's radar.
Assignee: cl-bugs → joshmoz
Status: ASSIGNED → NEW
Component: OS Integration → Widget: Cocoa
Product: Camino → Core
QA Contact: os.integration → cocoa
Assignee: joshmoz → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.