Cosmetics Make hint number color number gray
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Tue, 26 Jul 2016 12:53:20 +0000 (15:53 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Tue, 26 Jul 2016 15:52:59 +0000 (18:52 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderPanel.java

index 4f746d7e93ee70d46e3e03e0d6bef0044107cd88..e13f6d6e260b5c7b179079125be576ae0e363c64 100644 (file)
@@ -5,6 +5,7 @@ import com.intellij.openapi.actionSystem.ActionManager;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.DefaultActionGroup;
+import com.intellij.ui.ColorUtil;
 import com.intellij.ui.JBColor;
 import com.intellij.ui.components.JBLabel;
 import com.intellij.util.ui.UIUtil;
@@ -78,7 +79,8 @@ public class CCCreateAnswerPlaceholderPanel {
 
   private void updateHintNumberLabel() {
     if (myHints.size() > 1) {
-      myHintLabel.setText("Hint" + "(" + (myShownHintNumber + 1) + "/" + myHints.size() + "):");
+      final String color = String.valueOf(ColorUtil.toHex(UIUtil.getHeaderInactiveColor()));
+      myHintLabel.setText(UIUtil.toHtml("Hint" + " <font color=\"" + color + "\">(" + (myShownHintNumber + 1) + "/" + myHints.size() + ")</font>:"));
     }
     else {
       myHintLabel.setText("Hint: ");