mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Show IntelliJ IDEA 2024.3 30 years of Java artwork
Show the splash screen from the 23th of May until the 30th. (cherry picked from commit fdfd1bab65547057a85c137184bcffad964380d9) IJ-MR-159193 GitOrigin-RevId: c1a6b49083a7f38d0cd5e157d413eb67fb76785b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7c1b24bf6a
commit
009be4939e
BIN
community-resources/resources/idea_community_logo_java_30.png
Normal file
BIN
community-resources/resources/idea_community_logo_java_30.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 289 KiB |
BIN
community-resources/resources/idea_community_logo_java_30@2x.png
Normal file
BIN
community-resources/resources/idea_community_logo_java_30@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.application.impl;
|
||||
|
||||
import com.intellij.ReviseWhenPortedToJDK;
|
||||
@@ -20,6 +20,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.*;
|
||||
@@ -431,6 +432,15 @@ public final class ApplicationInfoImpl extends ApplicationInfoEx {
|
||||
|
||||
@Override
|
||||
public @Nullable String getSplashImageUrl() {
|
||||
if (getVersionName().equals("IntelliJ IDEA")) {
|
||||
LocalDate startDate = LocalDate.of(2025, 5, 22);
|
||||
LocalDate endDate = LocalDate.of(2025, 5, 31);
|
||||
LocalDate nowDate = LocalDate.now();
|
||||
String splashUrl = splashImageUrl;
|
||||
if (splashUrl != null && nowDate.isAfter(startDate) && nowDate.isBefore(endDate)) {
|
||||
return splashUrl.replace(".png", "_java_30.png");
|
||||
}
|
||||
}
|
||||
return isEap && eapSplashImageUrl != null ? eapSplashImageUrl : splashImageUrl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user