EDU-640 Always highlight reaction button in gray
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Tue, 26 Jul 2016 14:44:43 +0000 (17:44 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Tue, 26 Jul 2016 15:52:59 +0000 (18:52 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicAdaptiveReactionsPanel.java

index 24db1b1575aa8009467424f94859047751388882..8bf7fc09f16fb3993c0ab92644cb96b905759a1e 100644 (file)
@@ -10,6 +10,7 @@ import com.intellij.openapi.progress.Task;
 import com.intellij.openapi.progress.util.ProgressIndicatorBase;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.VirtualFile;
+import com.intellij.ui.JBColor;
 import com.intellij.util.ui.UIUtil;
 import com.jetbrains.edu.learning.StudyUtils;
 import com.jetbrains.edu.learning.courseFormat.StudyStatus;
@@ -173,7 +174,7 @@ public class StepicAdaptiveReactionsPanel extends JPanel {
       public void mouseEntered(MouseEvent e) {
         final com.jetbrains.edu.learning.courseFormat.Task task = StudyUtils.getCurrentTask(myProject);
         if (task != null && task.getStatus() != StudyStatus.Solved && myPanel.isEnabled()) {
-          setBackground(UIUtil.getButtonSelectColor());
+          setBackground(JBColor.GRAY);
         }
       }