PY-82344 Add rounded border to Welcome Screen promo banner

(cherry picked from commit b850e0d2751c4ec3d2d0f4a7cf6183c512f1eb40)

GitOrigin-RevId: 689543b60966333c24e7835e2839114fc3c5f405
This commit is contained in:
Daniil Kalinin
2025-11-06 13:14:56 +01:00
committed by intellij-monorepo-bot
parent 2634998685
commit aa627de5dd

View File

@@ -6,6 +6,8 @@ import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.util.Disposer
import com.intellij.openapi.wm.BannerStartPagePromoter
import com.intellij.openapi.wm.impl.IdeBackgroundUtil
import com.intellij.ui.JBColor
import com.intellij.ui.RoundedLineBorder
import com.intellij.util.SVGLoader
import com.intellij.util.ui.GraphicsUtil
import com.intellij.util.ui.JBInsets
@@ -38,6 +40,7 @@ abstract class PyCommunityToUnifiedWelcomeScreenBannerBase : BannerStartPageProm
val backgroundPanel = BackgroundPanel(BorderLayout(), backgroundImage)
backgroundPanel.add(panel, BorderLayout.CENTER)
backgroundPanel.isOpaque = false
backgroundPanel.border = RoundedLineBorder(JBColor.border(), 16, 1)
return backgroundPanel
}