mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-04 15:52:34 -08:00
fix: Colors in styles
This commit is contained in:
1 parent
a4cfc8ff49
commit
178de4dd99
12 files changed
+84
-175
No files matched your search
@@ -98,7 +98,7 @@ open class Education(val activity: Activity) {
|
||||
}
|
||||
|
||||
protected fun getCircleColor(): Int {
|
||||
val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.educationCircleColor))
|
||||
val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.colorPrimaryContainer))
|
||||
val colorControl = typedArray.getColor(0, Color.GREEN)
|
||||
typedArray.recycle()
|
||||
return colorControl
|
||||
@@ -109,7 +109,7 @@ open class Education(val activity: Activity) {
|
||||
}
|
||||
|
||||
protected fun getTextColor(): Int {
|
||||
val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.educationTextColor))
|
||||
val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.colorOnPrimaryContainer))
|
||||
val colorControl = typedArray.getColor(0, Color.WHITE)
|
||||
typedArray.recycle()
|
||||
return colorControl
|
||||
|
||||
Reference in new issue
Block a user