Skip to content

Commit

Permalink
fix: original cursor color replace error :: using fixed default color…
Browse files Browse the repository at this point in the history
…(light gray)
  • Loading branch information
lauvsong committed Feb 21, 2024
1 parent 48cbe4c commit 018dddb
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.service
import com.intellij.openapi.editor.colors.EditorColors
import com.intellij.openapi.editor.colors.EditorColorsManager
import com.intellij.ui.JBColor
import com.intellij.util.xmlb.XmlSerializerUtil
import java.awt.Color
Expand All @@ -15,12 +13,7 @@ import java.awt.Color
storages = [Storage("AppSettingsState.xml")]
)
class AppSettingsState : PersistentStateComponent<AppSettingsState> {
private val originalCursorColor: Color = EditorColorsManager.getInstance()
.globalScheme
.getColor(EditorColors.CARET_COLOR)
?: JBColor.BLACK

var englishCursorColorAsRgb: Int = originalCursorColor.rgb
var englishCursorColorAsRgb: Int = JBColor.LIGHT_GRAY.rgb
var nonEnglishCursorColorAsRgb: Int = JBColor.RED.rgb
var capsLockCursorColorAsRgb: Int = JBColor.BLUE.rgb

Expand Down

0 comments on commit 018dddb

Please sign in to comment.