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 46685 - [GTK] ListView - wrong color of selected node
Summary: [GTK] ListView - wrong color of selected node
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: GTK
: 44184 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-28 13:41 UTC by Petr Hrebejk
Modified: 2008-12-22 19:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2004-07-28 13:41:08 UTC
Sorry for another P2 but you may be in the context
while fixing Iddue #45709.

All listViews have strange color of the selected
node. For screenshot please see the bug Issue
#44184 which is dupe of this. But it is not only
problem of NewProject/File wizard but all
ListViews (e.g. manu Windows->Documents...
Comment 1 Petr Hrebejk 2004-07-28 13:41:23 UTC
*** Issue 44184 has been marked as a duplicate of this issue. ***
Comment 2 _ tboudreau 2004-07-28 14:09:00 UTC
Really similar issue to issue 45709 - all will be fixed together today.  HtmlRenderer needs 
to check how close the bg/fg colors are and adjust if needed, + some definitions for 
logical colors that can be different if selected.  Will need some special-case stuff for GTK, 
because with GTK you can't use a different color for unfocused-selection-bg and focused-
selection-bg - it will paint what it wants anyway, btu it's still getting set to the unfocused 
selection foreground (which is white).
Comment 3 _ tboudreau 2004-07-29 02:40:00 UTC
Should be fixed along with a couple others; will close once I test 
it on GTK.

Checking in src/org/openide/awt/HtmlLabelUI.java;
/cvs/openide/src/org/openide/awt/HtmlLabelUI.java,v  <--  
HtmlLabelUI.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/openide/awt/HtmlRenderer.java;
/cvs/openide/src/org/openide/awt/HtmlRenderer.java,v  <--  
HtmlRenderer.java
new revision: 1.5; previous revision: 1.4
done
Comment 4 _ tboudreau 2004-07-29 04:07:08 UTC
Well, it's no longer white-on-white, but the selection background isn't correct (it is a 
normal ListView, nothing funny going on with it, no custom renderers or anything, right?).

I'll have a look at it some more before closing.
Comment 5 _ tboudreau 2004-07-29 04:42:26 UTC
Fixed - the remaining problem was a workaround for getting the wrong colors back from 
UIManager on earlier builds of 1.5.
Comment 6 Tomas Danek 2005-07-15 09:47:42 UTC
works now ok, 4.2 20050706, verif.