[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Partial fix of 24749 (selection background is always b
From: |
Meskauskas Audrius |
Subject: |
[cp-patches] FYI: Partial fix of 24749 (selection background is always black). |
Date: |
Sun, 13 Nov 2005 00:35:18 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
This patch changes selection background color into correct one. The
selected text is now visible in Metal and Ocean L&F. It is still not
visible in GNU L&F because the selection background in this L&F is black
anyway. The foreground must be white, but for some reason stays black,
despite the that property is correctly defined.
PR 24749
2005-11-13 Audrius Meskauskas <address@hidden>
* javax/swing/plaf/basic/BasicTextUI.java (installDefaults): Call
setSelectionColor.
Index: javax/swing/plaf/basic/BasicTextUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
retrieving revision 1.53
diff -u -r1.53 BasicTextUI.java
--- javax/swing/plaf/basic/BasicTextUI.java 9 Nov 2005 10:22:34 -0000
1.53
+++ javax/swing/plaf/basic/BasicTextUI.java 12 Nov 2005 22:22:26 -0000
@@ -557,6 +557,7 @@
textComponent.setDisabledTextColor
(UIManager.getColor(prefix + ".inactiveForeground"));
textComponent.setSelectedTextColor(UIManager.getColor(prefix +
".selectionForeground"));
+ textComponent.setSelectionColor(UIManager.getColor(prefix +
".selectionBackground"));
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Partial fix of 24749 (selection background is always black).,
Meskauskas Audrius <=