mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
ui: restore backward compatibility
GitOrigin-RevId: 87cc1729c3ff160dae6c9016f96521841c7ae808
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cf1927b1d1
commit
9245395e32
@@ -0,0 +1,9 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.collaboration.ui.icon
|
||||
|
||||
import com.intellij.ui.OverlaidOffsetIconsIcon
|
||||
import javax.swing.Icon
|
||||
|
||||
@Deprecated("Use com.intellij.ui.OverlaidOffsetIconsIcon instead")
|
||||
class OverlaidOffsetIconsIcon(icons: List<Icon>, offsetRate: Float = 0.4f) : OverlaidOffsetIconsIcon(icons, offsetRate) {
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.intellij.ui
|
||||
|
||||
import com.intellij.util.ui.ImageUtil
|
||||
import com.intellij.util.ui.StartupUiUtil
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import java.awt.AlphaComposite
|
||||
import java.awt.Component
|
||||
import java.awt.Graphics
|
||||
@@ -16,7 +17,8 @@ import kotlin.math.roundToInt
|
||||
* Paints [icons] in a stack - one over the other with a slight offset
|
||||
* Assumes that icons all have the same size
|
||||
*/
|
||||
class OverlaidOffsetIconsIcon(
|
||||
@ApiStatus.NonExtendable
|
||||
open class OverlaidOffsetIconsIcon(
|
||||
private val icons: List<Icon>,
|
||||
private val offsetRate: Float = 0.4f
|
||||
) : Icon {
|
||||
|
||||
Reference in New Issue
Block a user