Is it possible to change the IME theme? Say if my app has a dark/light theme selector internally; phone is in light mode, app in dark; ideally the keyboard (while in my app) should also be dark.
👀 2
Zoltan Demant
10/05/2023, 8:54 AM
Tested this so far with no success:
Copy code
AppCompatDelegate.setDefaultNightMode(
when (mode) {
Dark -> MODE_NIGHT_YES
Light -> MODE_NIGHT_NO
},
)
Zoltan Demant
10/05/2023, 8:55 AM
I realize this may or may not be compose related, but Id like to do this from compose, so counts?
j
jw
10/05/2023, 1:05 PM
It's definitely not a compose question and no I don't think doing it from compose counts because that's then literally anything.
jw
10/05/2023, 1:05 PM
They keyboard runs in another process and in its own window as a result. You can ask it for things, like to change to showing numbers, but it is not required to comply.
jw
10/05/2023, 1:07 PM
There is no mechanism to ask it to change its theme, however