Add simple primary color tint for better visibility of top converter field

This commit is contained in:
Ensar Sarajčić 2023-09-14 09:24:08 +02:00
parent 3f86b85c5c
commit 89249927fc

View file

@ -19,6 +19,7 @@ import com.simplemobiletools.calculator.helpers.NumberFormatHelper
import com.simplemobiletools.calculator.helpers.converters.Converter
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.LOWER_ALPHA
import com.simplemobiletools.commons.helpers.MEDIUM_ALPHA_INT
import com.simplemobiletools.commons.models.RadioItem
import me.grantland.widget.AutofitHelper
@ -86,7 +87,7 @@ class ConverterView @JvmOverloads constructor(
)
}
binding.topUnitHolder.setBackgroundColor(context.getProperBackgroundColor().lightenColor())
binding.topUnitHolder.setBackgroundColor(context.getProperPrimaryColor().lightenColor().adjustAlpha(LOWER_ALPHA))
binding.swapButton.applyColorFilter(context.getProperPrimaryColor())
val drawable = ResourcesCompat.getDrawable(