mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
updated empty panel
This commit is contained in:
@@ -30,19 +30,17 @@ public class StudyInstructionPainter extends EditorEmptyTextPainter {
|
||||
g.setFont(UIUtil.getLabelFont().deriveFont(isDarkBackground ? 24f : 20f));
|
||||
|
||||
UIUtil.TextPainter painter = new UIUtil.TextPainter().withLineSpacing(1.5f);
|
||||
painter.withShadow(true, new JBColor(Gray._200.withAlpha(100), Gray._0.withAlpha(255)));
|
||||
|
||||
painter.appendLine("PyCharm Educational Edition").underlined(new JBColor(Gray._150, Gray._180));
|
||||
painter.appendLine("Learn Python programming in your favorite IDE").smaller();
|
||||
painter.appendLine("Navigate between tasks with Ctrl + Shift + < and Ctrl + Shift + >").smaller().withBullet();
|
||||
painter.appendLine("Navigate to the next task window with Ctrl + Enter").smaller().withBullet();
|
||||
painter.appendLine("Navigate between task windows with Ctrl + < and Ctrl + >").smaller().withBullet();
|
||||
painter.draw(g, new PairFunction<Integer, Integer, Couple<Integer>>() {
|
||||
@Override
|
||||
public Couple<Integer> fun(Integer width, Integer height) {
|
||||
Dimension s = splitters.getSize();
|
||||
return Couple.of((s.width - width) / 2, (s.height - height) / 2);
|
||||
}
|
||||
});
|
||||
painter.appendLine("To see your progress open the 'Course Description' panel").smaller().withBullet();
|
||||
painter.draw(g, new PairFunction<Integer, Integer, Couple<Integer>>() {
|
||||
@Override
|
||||
public Couple<Integer> fun(Integer width, Integer height) {
|
||||
Dimension s = splitters.getSize();
|
||||
return Couple.of((s.width - width) / 2, (s.height - height) / 2);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user