17 lines
549 B
Kotlin
17 lines
549 B
Kotlin
package com.vanced.manager.ui.core
|
|
|
|
import android.content.Context
|
|
import android.content.res.ColorStateList
|
|
import android.util.AttributeSet
|
|
import com.google.android.material.checkbox.MaterialCheckBox
|
|
import com.vanced.manager.R
|
|
import com.vanced.manager.utils.accentColor
|
|
|
|
class ThemedMaterialCheckbox @JvmOverloads constructor(
|
|
context: Context,
|
|
attributeSet: AttributeSet? = null,
|
|
) : MaterialCheckBox(context, attributeSet, R.attr.checkboxStyle) {
|
|
init {
|
|
buttonTintList = ColorStateList.valueOf(accentColor.value!!)
|
|
}
|
|
} |