mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-01-31 10:24:45 +01:00
update all colors properly on the main screen
This commit is contained in:
parent
69bb719aa9
commit
e8adf2e9ff
@ -9,10 +9,7 @@ import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
|
||||
import com.simplemobiletools.commons.extensions.appLaunched
|
||||
import com.simplemobiletools.commons.extensions.applyColorFilter
|
||||
import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor
|
||||
import com.simplemobiletools.commons.extensions.updateTextColors
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.models.FAQItem
|
||||
import com.simplemobiletools.keyboard.BuildConfig
|
||||
import com.simplemobiletools.keyboard.R
|
||||
@ -49,6 +46,7 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.menu_main, menu)
|
||||
updateMenuItemColors(menu)
|
||||
return true
|
||||
}
|
||||
|
||||
@ -76,6 +74,7 @@ class MainActivity : SimpleActivity() {
|
||||
val applyBackground = resources.getDrawable(R.drawable.button_background_rounded, theme) as RippleDrawable
|
||||
(applyBackground as LayerDrawable).findDrawableByLayerId(R.id.button_background_holder).applyColorFilter(getAdjustedPrimaryColor())
|
||||
change_keyboard.background = applyBackground
|
||||
change_keyboard.setTextColor(getAdjustedPrimaryColor().getContrastColor())
|
||||
}
|
||||
|
||||
private fun isKeyboardEnabled(): Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user