[RDCT] Add support for TextIcon from IconUtil

GitOrigin-RevId: 29c9f2fd49cf23db640d5a6fd6e029ae53a23f29
This commit is contained in:
Vyacheslav Moklev
2022-12-29 16:28:22 +02:00
committed by intellij-monorepo-bot
parent 8cdd95aa6e
commit c7da24cd84

View File

@@ -778,7 +778,7 @@ private fun filterFileIconFlags(file: VirtualFile, @IconFlags flags: Int): Int {
return flags and flagIgnoreMask.inv()
}
private class TextIcon(private val text: String, component: Component, private val fontSize: Float) : JBScalableIcon() {
class TextIcon(val text: String, component: Component, val fontSize: Float) : JBScalableIcon() {
private var font: Font? = null
private var metrics: FontMetrics? = null
private val componentRef = WeakReference(component)