diff options
author | Alex Lockwood <alockwood@google.com> | 2014-10-17 14:33:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-17 14:33:21 +0000 |
commit | 264a535d6587bad6f9d80c870459a949f4c97857 (patch) | |
tree | 57363a8f56dff85a17581f23859f62c65e9c5281 | |
parent | c4a3cf483fcd3c5da8ea258f29dd7b9527923836 (diff) | |
parent | a2cce3aef865cc46a6310f9790d6d0fdbe119647 (diff) | |
download | login-264a535d6587bad6f9d80c870459a949f4c97857.tar.gz |
Merge "Adjust active user background color." into studio-1.0-dev
-rw-r--r-- | src/com/google/gct/login/ui/UsersListCellRenderer.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/com/google/gct/login/ui/UsersListCellRenderer.java b/src/com/google/gct/login/ui/UsersListCellRenderer.java index 01e319a..5796029 100644 --- a/src/com/google/gct/login/ui/UsersListCellRenderer.java +++ b/src/com/google/gct/login/ui/UsersListCellRenderer.java @@ -23,15 +23,7 @@ import com.intellij.ui.JBColor; import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.Nullable; -import javax.swing.BorderFactory; -import javax.swing.Box; -import javax.swing.BoxLayout; -import javax.swing.ImageIcon; -import javax.swing.JComponent; -import javax.swing.JLabel; -import javax.swing.JList; -import javax.swing.JPanel; -import javax.swing.ListCellRenderer; +import javax.swing.*; import java.awt.Color; import java.awt.Component; @@ -95,9 +87,8 @@ public class UsersListCellRenderer extends JComponent implements ListCellRendere myGeneralFont = new Font("Helvetica", Font.PLAIN, 13); myMainPanelDimension = new Dimension(250, 68); myActiveMainPanelDimension = new Dimension(250, 116); - Color bg = UIUtil.getTextFieldBackground(); - myActiveColor = UIUtil.isUnderDarcula() ? ColorUtil.shift(bg, 1.4) : new Color(0xffffff); - myInactiveColor = UIUtil.isUnderDarcula() ? bg : new Color(0xf5f5f5); + myActiveColor = UIUtil.isUnderDarcula() ? UIManager.getColor("TextField.background") : Color.WHITE; + myInactiveColor = UIUtil.isUnderDarcula() ? UIManager.getColor("darcula.inactiveBackground") : new Color(0xf5f5f5); FontMetrics fontMetrics = getFontMetrics(myGeneralFont); myGeneralFontHeight = fontMetrics.getHeight(); |