Skip to content

Commit d159941

Browse files
committed
add red color;
add icons with logo
1 parent 84db8ad commit d159941

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed

core/src/main/java/com/jetbrains/tmp/learning/ui/StudyToolWindowFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class StudyToolWindowFactory implements ToolWindowFactory, DumbAware {
2121

2222
@Override
2323
public void createToolWindowContent(@NotNull final Project project, @NotNull final ToolWindow toolWindow) {
24-
toolWindow.setIcon(AllStepikIcons.ToolWindow.taskDescription);
24+
toolWindow.setIcon(AllStepikIcons.stepikLogoSmall);
2525
StudyTaskManager taskManager = StudyTaskManager.getInstance(project);
2626
final Course course = taskManager.getCourse();
2727
if (course != null || !taskManager.getUser().getEmail().isEmpty()) {

core/src/main/java/icons/AllStepikIcons.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ private static Icon load(String path) {
1111
}
1212

1313
public static final Icon stepikLogo = load("/icons/stepikLogo.png"); // 16x16
14+
public static final Icon stepikLogoBig = load("/icons/stepikLogoBig.png"); // 24x24
1415
public static final Icon stepikLogoSmall = load("/icons/stepikLogoSmall.png"); // 13x13
1516

1617
public static class ProjectTree {

core/src/main/java/org/stepik/core/utils/PresentationUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class PresentationUtils {
3131

3232
private static Icon[][] icons = null;
3333
private static final JBColor SOLVED_COLOR = new JBColor(new Color(0, 134, 0), new Color(98, 150, 85));
34+
private static final JBColor WRONG_COLOR = new JBColor(new Color(175, 65, 45), new Color(175, 75, 60));
3435

3536
@Nullable
3637
public static Icon getIcon(@NotNull Object subjectClass, StudyStatus status) {
@@ -96,7 +97,7 @@ public static JBColor getColor(@NotNull StudyStatus status) {
9697
case SOLVED:
9798
return SOLVED_COLOR;
9899
case FAILED:
99-
return JBColor.RED;
100+
return WRONG_COLOR;
100101
}
101102
return JBColor.BLACK;
102103
}
531 Bytes
Loading
962 Bytes
Loading

stepik-union/src/main/java/org/stepik/plugin/projectWizard/StepikModuleType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public String getDescription() {
6666

6767
@Override
6868
public Icon getBigIcon() {
69-
return AllStepikIcons.stepikLogo;
69+
return AllStepikIcons.stepikLogoBig;
7070
}
7171

7272
@Override

0 commit comments

Comments
 (0)