diff options
Diffstat (limited to 'platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt')
-rw-r--r-- | platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt b/platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt index ed7d3c741dec..a7adda2487f0 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/codeVision/ui/renderers/painters/CodeVisionTheme.kt @@ -2,14 +2,9 @@ package com.intellij.codeInsight.codeVision.ui.renderers.painters import com.intellij.openapi.editor.Editor import com.intellij.openapi.editor.colors.EditorFontType -import com.intellij.ui.JBColor import com.intellij.util.ui.JBUI -import com.intellij.util.ui.UIUtil -import java.awt.Color import java.awt.Font import java.awt.Rectangle -import kotlin.math.max -import kotlin.math.min class CodeVisionTheme( var iconGap: Int = JBUI.scale(2), @@ -19,24 +14,6 @@ class CodeVisionTheme( var bottom: Int = 0 ) { companion object { - //todo rider proper color keys - fun foregroundColor(editor: Editor, hovered: Boolean): Color { - return if (hovered) { - JBUI.CurrentTheme.Link.Foreground.ENABLED - } - else { - JBColor.GRAY - } - } - - fun font(editor: Editor, style: Int = Font.PLAIN): Font { - val size = lensFontSize(editor) - return UIUtil.getLabelFont().deriveFont(style, size) - } - - fun lensFontSize(editor: Editor) = - min(max(editor.colorsScheme.editorFontSize * 80f / 100, 10f), editor.colorsScheme.editorFontSize.toFloat()) - fun editorFont(editor: Editor, style: EditorFontType = EditorFontType.PLAIN): Font = editor.colorsScheme.getFont(style) fun yInInlayBounds(y: Int, size: Rectangle): Boolean { |