Plugins can now accept colors (not my code)
This commit is contained in:
@@ -310,7 +310,8 @@ public class ConfigPanel extends PluginPanel
|
||||
String name = listItem.getName();
|
||||
JLabel title = new JLabel(name);
|
||||
title.setForeground(Color.WHITE);
|
||||
title.setToolTipText("<html>" + name + ":<br>" + listItem.getDescription() + "</html>");
|
||||
title.setText("<html>" + name +"</html>");
|
||||
title.setToolTipText("<html>" + ":<br>" + listItem.getDescription() + "</html>");
|
||||
topPanel.add(title);
|
||||
|
||||
for (ConfigItemDescriptor cid : cd.getItems())
|
||||
|
||||
@@ -153,8 +153,10 @@ class PluginListItem extends JPanel
|
||||
setPreferredSize(new Dimension(PluginPanel.PANEL_WIDTH, 20));
|
||||
|
||||
JLabel nameLabel = new JLabel(name);
|
||||
nameLabel.setText("<html>" + name +"</html>");
|
||||
nameLabel.setForeground(Color.WHITE);
|
||||
|
||||
|
||||
if (!description.isEmpty())
|
||||
{
|
||||
nameLabel.setToolTipText("<html>" + name + ":<br>" + description + "</html>");
|
||||
|
||||
Reference in New Issue
Block a user