mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
KTIJ-37400 [kotlin]: Show IntelliJ IDEA 2026.1 15 years of Kotlin artwork
Show the splash screen between July 6th and 12th. GitOrigin-RevId: c1991d898ce94dd590d13cd45711ea194d82c577
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b19a626b15
commit
035b44daf7
BIN
community-resources/resources/idea_community_logo_kotlin_15.png
Normal file
BIN
community-resources/resources/idea_community_logo_kotlin_15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 286 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 907 KiB |
@@ -25,6 +25,8 @@ import org.jetbrains.annotations.VisibleForTesting;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.text.MessageFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.Month;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.ArrayList;
|
||||
@@ -376,6 +378,21 @@ public final class ApplicationInfoImpl extends ApplicationInfoEx {
|
||||
|
||||
@Override
|
||||
public @Nullable String getSplashImageUrl() {
|
||||
if (getVersionName().equals("IntelliJ IDEA")) {
|
||||
LocalDate startDate = LocalDate.of(2026, Month.JULY, 5);
|
||||
LocalDate endDate = LocalDate.of(2026, Month.JULY, 13);
|
||||
LocalDate nowDate = LocalDate.now();
|
||||
String splashUrl = splashImageUrl;
|
||||
if (splashUrl != null &&
|
||||
(
|
||||
Boolean.parseBoolean(System.getProperty("show.kotlin.anniversary.splash")) ||
|
||||
nowDate.isAfter(startDate) && nowDate.isBefore(endDate)
|
||||
)
|
||||
) {
|
||||
return splashUrl.replace(".png", "_kotlin_15.png");
|
||||
}
|
||||
}
|
||||
|
||||
if (isEap && eapSplashImageUrl != null) return eapSplashImageUrl;
|
||||
|
||||
if (simplifiedSplashImageUrl != null) {
|
||||
|
||||
Reference in New Issue
Block a user