update the Widget Config save button colors

This commit is contained in:
tibbi 2022-07-20 17:40:43 +02:00
parent ca285fec4e
commit 456c319ee3
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package com.simplemobiletools.voicerecorder.activities
import android.app.Activity
import android.appwidget.AppWidgetManager
import android.content.Intent
import android.content.res.ColorStateList
import android.graphics.Color
import android.os.Bundle
import android.widget.SeekBar
@ -49,17 +50,19 @@ class WidgetRecordDisplayConfigureActivity : SimpleActivity() {
}
}
}
config_save.backgroundTintList = ColorStateList.valueOf(getProperPrimaryColor())
config_save.setTextColor(getProperPrimaryColor().getContrastColor())
}
override fun onResume() {
super.onResume()
window.decorView.setBackgroundColor(0)
setupToolbar(config_toolbar)
if (mFeatureLockedDialog != null && isOrWasThankYouInstalled()) {
mFeatureLockedDialog?.dismissDialog()
}
setupToolbar(config_toolbar)
}
private fun initVariables() {