mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
two useful methods
This commit is contained in:
@@ -435,10 +435,18 @@ public class UIUtil {
|
||||
return isUnderGTKLookAndFeel() ? getTreeTextBackground() : UIManager.getColor("List.background");
|
||||
}
|
||||
|
||||
public static Color getListBackground(boolean isSelected) {
|
||||
return isSelected ? getListSelectionBackground() : getListBackground();
|
||||
}
|
||||
|
||||
public static Color getListForeground() {
|
||||
return UIManager.getColor("List.foreground");
|
||||
}
|
||||
|
||||
public static Color getListForeground(boolean isSelected) {
|
||||
return isSelected ? getListSelectionForeground() : getListForeground();
|
||||
}
|
||||
|
||||
public static Color getPanelBackground() {
|
||||
return UIManager.getColor("Panel.background");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user