diff --git a/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellJPanel.java b/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellJPanel.java index 665b83a95..a9a8a39f4 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellJPanel.java +++ b/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellJPanel.java @@ -199,7 +199,6 @@ public class ContributedLibraryTableCellJPanel extends JPanel { description.setText(desc); // copy description to accessibility context for screen readers to use description.getAccessibleContext().setAccessibleDescription(desc); - description.setBackground(Color.WHITE); // for modelToView to work, the text area has to be sized. It doesn't // matter if it's visible or not. @@ -209,14 +208,6 @@ public class ContributedLibraryTableCellJPanel extends JPanel { InstallerTableCell .setJTextPaneDimensionToFitContainedText(description, parentTable.getBounds().width); - - if (isSelected) { - setBackground(parentTable.getSelectionBackground()); - setForeground(parentTable.getSelectionForeground()); - } else { - setBackground(parentTable.getBackground()); - setForeground(parentTable.getForeground()); - } } // same function as in ContributedPlatformTableCellJPanel - is there a utils file this can move to? diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java index 26bcb1c9d..acfb58bb3 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java @@ -129,7 +129,7 @@ public class ContributedPlatformTableCellEditor extends InstallerTableCell { cell.versionToInstallChooser .setVisible(installed == null && uninstalledReleases.size() > 1); - cell.update(table, _value, true, !installedBuiltIn.isEmpty()); + cell.update(table, _value, !installedBuiltIn.isEmpty()); cell.setBackground(new Color(218, 227, 227)); // #dae3e3 return cell; } diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java index 6051ec98c..9575d12e6 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java @@ -175,8 +175,7 @@ public class ContributedPlatformTableCellJPanel extends JPanel { return retString; } - void update(JTable parentTable, Object value, boolean isSelected, - boolean hasBuiltInRelease) { + void update(JTable parentTable, Object value, boolean hasBuiltInRelease) { ContributedPlatformReleases releases = (ContributedPlatformReleases) value; JTextPane description = makeNewDescription(); @@ -262,7 +261,6 @@ public class ContributedPlatformTableCellJPanel extends JPanel { description.setText(desc); // copy description to accessibility context for screen readers to use description.getAccessibleContext().setAccessibleDescription(desc); - description.setBackground(Color.WHITE); // for modelToView to work, the text area has to be sized. It doesn't // matter if it's visible or not. @@ -272,14 +270,6 @@ public class ContributedPlatformTableCellJPanel extends JPanel { int width = parentTable.getBounds().width; InstallerTableCell.setJTextPaneDimensionToFitContainedText(description, width); - - if (isSelected) { - setBackground(parentTable.getSelectionBackground()); - setForeground(parentTable.getSelectionForeground()); - } else { - setBackground(parentTable.getBackground()); - setForeground(parentTable.getForeground()); - } } private JTextPane makeNewDescription() { diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java index cc4b1d0c1..19d484dc2 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java @@ -44,7 +44,7 @@ public class ContributedPlatformTableCellRenderer implements TableCellRenderer { int column) { ContributedPlatformTableCellJPanel cell = new ContributedPlatformTableCellJPanel(); cell.setButtonsVisible(false); - cell.update(table, value, isSelected, false); + cell.update(table, value, false); if (row % 2 == 0) { cell.setBackground(new Color(236, 241, 241)); // #ecf1f1 diff --git a/app/src/cc/arduino/contributions/ui/InstallerJDialog.java b/app/src/cc/arduino/contributions/ui/InstallerJDialog.java index dd2998bc4..2888cd688 100644 --- a/app/src/cc/arduino/contributions/ui/InstallerJDialog.java +++ b/app/src/cc/arduino/contributions/ui/InstallerJDialog.java @@ -180,7 +180,6 @@ public abstract class InstallerJDialog extends JDialog { contribTable.setDragEnabled(false); contribTable.setIntercellSpacing(new Dimension(0, 1)); contribTable.setShowVerticalLines(false); - contribTable.setSelectionBackground(Theme.getColor("status.notice.bgcolor")); contribTable.addKeyListener(new AbstractKeyListener() { @Override