This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | The colors used for the Output Window should be configurable | ||
---|---|---|---|
Product: | cnd | Reporter: | K.C. Baltz <kcbaltz> |
Component: | Terminalemulator | Assignee: | akemr <akemr> |
Status: | CLOSED FIXED | ||
Severity: | blocker | Keywords: | UI |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows 3.1/NT | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
K.C. Baltz
2002-01-30 16:47:41 UTC
Colors can be customized via Tools, Options..., IDE COnfiguration, Look and Feel, Output Window. If you thing on more customization, please reopen this and specify what should be enhanced. The color controls that exist now do work but there is no control for the color of text that is selected by the mouse. Right now, it comes out as a very light cyan which is really difficult to see against the default gray background. The only color customizations I see are for Background, Foreground, and the Jump Cursor variants. I see no effect on the selected text color when I change any of these. Agree, there is no possibility to customize selected text. Adding one notice from Jesse: Wouldn't it be better to use NB theme support for that? Ivan, do you think it will be possible to make selection color configurable? I can add this option, but need support of term. Thanks, -Ales Ivan wrote:
> The API is already there:
/**
* Set the color of the hilite (selection)
*/
public void setHighlightColor(Color color) {
sel.setColor(color);
repaint(false);
}
/**
* Get the color of the hilite (selection)
*/
public Color getHighlightColor() {
return sel.getColor();
}
My note: Hmm, this API isn't what I need.. actually I need to change Sel.swing_color, not Sel.color (Sel.color is used only for XOR) Ah, now I remember. I had deadlocked on this decision because I couldn't decide whether the xor and bg style selection colors should have independent variables or not. So .... One way: Add a new function Term.setHighlightXORColor() and keep the two distinct Sel variables. Term.setHighlightColor() should then change the swing style BG color which is a change in existing semantics. Other way: Have Sel have only one color variable and have Term.setHighlightColor change it. That means that users will have to be careful as they change mode from bg selection to XOR and also change the color. Done in trunk. - I implemented Ivan's first suggestion (see: One way) - There is new option of OW: Selection background 200203150100 Resolved for 3.4.x or earlier, no new info since then -> closing. moving terminal emulator issues to terminalemulator component. To see the correct version and target milestone of this issue look at Issue Activity table. |