Skip to content

Commit

Permalink
Fixed two other missing default colors (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet committed May 24, 2021
1 parent dec88a0 commit 2477292
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ constructor(
val lineNumberTextColor = a.getColor(context,
defaultColor = Color.BLACK,
styleableRes = R.styleable.CodeEditorLayout_ke_lineNumbers_textColor,
attr = intArrayOf(R.attr.ke_lineNumbers_textColor))
attr = intArrayOf(R.attr.ke_lineNumbers_textColor,
android.R.attr.textColorPrimary))
lineNumberTextView.setTextColor(lineNumberTextColor)

val lineNumberBackgroundColor = a.getColor(context,
Expand All @@ -276,7 +277,8 @@ constructor(
val dividerColor = a.getColor(context,
defaultColor = Color.BLACK,
styleableRes = R.styleable.CodeEditorLayout_ke_divider_color,
attr = intArrayOf(R.attr.ke_divider_color))
attr = intArrayOf(R.attr.ke_divider_color,
android.R.attr.textColorPrimary))
dividerView.setBackgroundColor(dividerColor)

editorBackgroundColor = a.getColor(context,
Expand Down

0 comments on commit 2477292

Please sign in to comment.