Skip to content

Commit

Permalink
Remove deprecated API usage CaretVisualAttributes.DEFAULT in setCaret…
Browse files Browse the repository at this point in the history
…Color()
  • Loading branch information
Ivan Seredkin committed Jul 14, 2024
1 parent 8a71178 commit edee2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/siropkin/kursor/Kursor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class Kursor(private var editor: Editor): JComponent(), ComponentListener, Caret
}

private fun setCaretColor(caret: Caret, color: Color?) {
caret.visualAttributes = CaretVisualAttributes(color, CaretVisualAttributes.DEFAULT.weight)
caret.visualAttributes = CaretVisualAttributes(color, caret.visualAttributes.weight)
}

private fun colorWithAlpha(color: Color, alpha: Int): Color {
Expand Down

0 comments on commit edee2e6

Please sign in to comment.