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 160658 - Wrong apperance of usages window on Mac L&F
Summary: Wrong apperance of usages window on Mac L&F
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 15:25 UTC by Ondrej Langr
Modified: 2011-03-09 05:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Wrong color and appearance of the usages window (99.32 KB, image/png)
2009-03-19 15:27 UTC, Ondrej Langr
Details
Wrong color and appearance of the empty usages window (89.90 KB, image/png)
2009-03-19 15:28 UTC, Ondrej Langr
Details
Correct (suggested) appearance of the window background and controls (15.80 KB, image/png)
2009-03-19 15:29 UTC, Ondrej Langr
Details
suggested fix on window system level (1.45 KB, patch)
2009-03-27 10:42 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Langr 2009-03-19 15:25:25 UTC
On the new Mac L&F, all windows around the main area should use consistent background color. Several windows, including
the usages window use hard-coded background color. 

The desired color is #E2E2E2.

Please use the following code (provided by saubrecht) to adjust background for mac l&f:

        if( "Aqua".equals( UIManager.getLookAndFeel().getID() ) ) {
            setBackground(UIManager.getColor("NbExplorerView.background")); //NOI18N
        }

Further, the usages window has wrong appearance of the control element on the left side of it and annoying frames around
it.
Comment 1 Ondrej Langr 2009-03-19 15:26:12 UTC
( I am not really sure of the correct component, please reassign if necessary )
Comment 2 Ondrej Langr 2009-03-19 15:27:29 UTC
Created attachment 78461 [details]
Wrong color and appearance of the usages window
Comment 3 Ondrej Langr 2009-03-19 15:28:17 UTC
Created attachment 78462 [details]
Wrong color and appearance of the empty usages window
Comment 4 Ondrej Langr 2009-03-19 15:29:13 UTC
Created attachment 78463 [details]
Correct (suggested) appearance of the window background and controls
Comment 5 Jan Pokorsky 2009-03-26 18:33:44 UTC
The background color of the empty Usages top component is not touched by the refactoring module. Should not your patch
be part of TopComponent itself?

In case of presenting usages the only place touching the background color is TreeCellRenderer that uses
JTree.getBackground(). So I will use your patch here.
Comment 6 Stanislav Aubrecht 2009-03-27 08:52:05 UTC
well, topcomponent is just a JComponent subclass which doesn't paint its background but i'll try fixing that somewhere
in window system impl
Comment 7 Stanislav Aubrecht 2009-03-27 10:42:14 UTC
Created attachment 78962 [details]
suggested fix on window system level
Comment 8 Stanislav Aubrecht 2009-03-27 10:43:14 UTC
i've attached a patch that should take care of most of such issues. please verify that it works for you and i'll push it
to main repository then.
Comment 9 Jan Pokorsky 2009-03-27 11:05:20 UTC
Push it there please. I do not have Mac to verify it.

The tab containing results fixed as http://hg.netbeans.org/jet-main/rev/32ef45f76dd6
Comment 10 Quality Engineering 2009-03-28 20:40:26 UTC
Integrated into 'main-golden', will be available in build *200903281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/32ef45f76dd6
User: Jan Pokorsky <jpokorsky@netbeans.org>
Log: #160658: Wrong apperance of usages window on Mac L&F
Comment 11 Stanislav Aubrecht 2009-03-31 10:27:50 UTC
patch integrated in core-main 2546947cc9dc

it should take care of most of such problems. olangr, can you pls verify that non-editor windows look fine on mac now? thanks
Comment 12 Ondrej Langr 2009-04-03 13:39:17 UTC
I went through all the windows (hell of a job ;-). Many of them look good, but I identified at least some problems with
the following ones:

Variables
Usages
Test Results
Call Stack
Sources
Versioning Output
Threads
Mercurial
CVS
Subversion
Exception Reporter
Javadoc 

Not sure what to do with those. What is a best way to proceed? Rotating issue, or something like that?
Comment 13 Stanislav Aubrecht 2009-04-03 13:47:04 UTC
is there a common denominator for those issues that could be fixed in one place?
most teams will regard such issues as cosmetic and i'm sure they have plenty of more important bugs to fix:)
Comment 14 Ondrej Langr 2009-04-03 15:28:47 UTC
To be honest, I can hardly tell. The common denominator is mostly a wrong color of the background. Standa, let's meet
and discuss this in person on Monday. 
Comment 15 Stanislav Aubrecht 2010-10-07 09:52:43 UTC
do we still need any fixing in this area?
Comment 16 Ondrej Langr 2010-11-10 12:22:50 UTC
All important and commonly used windows seem to be OK except for versioning windows: Mercurial, CVS and Subversion. Let's fix these and close it.
Comment 17 Stanislav Aubrecht 2011-02-24 10:52:01 UTC
reassigning to versioning team
Comment 18 Tomas Stupka 2011-03-08 15:58:29 UTC
fixed vcs views in core-main #8a7d662289e1

closing...
Comment 19 Quality Engineering 2011-03-09 05:37:52 UTC
Integrated into 'main-golden', will be available in build *201103090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8a7d662289e1
User: Tomas Stupka <tstupka@netbeans.org>
Log: issue #160658 - Wrong apperance of usages window on Mac L&F