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.

Bug 19956 - The colors used for the Output Window should be configurable
Summary: The colors used for the Output Window should be configurable
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: akemr
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2002-01-30 16:47 UTC by K.C. Baltz
Modified: 2008-12-23 08:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description K.C. Baltz 2002-01-30 16:47:41 UTC
In it's present form, it's very difficult to see selected text in the Output 
window on my laptop LCD.  There simply isn't enough contrast.  NB should allow 
you to configure the colors of this tool like most other areas of the product.
Comment 1 Jan Zajicek 2002-01-30 17:59:31 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.
Comment 2 K.C. Baltz 2002-01-30 20:07:11 UTC
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.  
Comment 3 akemr 2002-01-31 09:32:19 UTC
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? 
Comment 4 akemr 2002-02-06 08:34:23 UTC
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
Comment 5 akemr 2002-02-07 08:11:23 UTC
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();
    }

Comment 6 akemr 2002-02-12 15:47:14 UTC
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)
Comment 7 ivan 2002-02-15 04:40:02 UTC
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.

Comment 8 akemr 2002-02-15 09:21:12 UTC
Done in trunk.
- I implemented Ivan's first suggestion (see: One way)
- There is new option of OW: Selection background

Comment 9 Lukas Hasik 2002-03-15 13:00:16 UTC
200203150100
Comment 10 Quality Engineering 2003-07-01 16:22:57 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 11 Quality Engineering 2008-12-23 08:29:34 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.