lets show the recent colors by default at color customization screen

This commit is contained in:
tibbi 2021-09-24 23:03:28 +02:00
parent d4b6547969
commit 345239c31d

View file

@ -420,7 +420,7 @@ class CustomizationActivity : BaseSimpleActivity() {
private fun isCurrentBlackAndWhiteTheme() = curTextColor == Color.WHITE && curPrimaryColor == Color.BLACK && curBackgroundColor == Color.BLACK
private fun pickTextColor() {
ColorPickerDialog(this, curTextColor) { wasPositivePressed, color ->
ColorPickerDialog(this, curTextColor, true) { wasPositivePressed, color ->
if (wasPositivePressed) {
if (hasColorChanged(curTextColor, color)) {
setCurrentTextColor(color)
@ -432,7 +432,7 @@ class CustomizationActivity : BaseSimpleActivity() {
}
private fun pickBackgroundColor() {
ColorPickerDialog(this, curBackgroundColor) { wasPositivePressed, color ->
ColorPickerDialog(this, curBackgroundColor, true) { wasPositivePressed, color ->
if (wasPositivePressed) {
if (hasColorChanged(curBackgroundColor, color)) {
setCurrentBackgroundColor(color)
@ -468,7 +468,7 @@ class CustomizationActivity : BaseSimpleActivity() {
}
private fun pickAccentColor() {
ColorPickerDialog(this, curAccentColor) { wasPositivePressed, color ->
ColorPickerDialog(this, curAccentColor, true) { wasPositivePressed, color ->
if (wasPositivePressed) {
if (hasColorChanged(curAccentColor, color)) {
curAccentColor = color