Implement App in Dark Theme

How do I get if Android is in dark theme so I can change the UI of the app? I know there is probably an extension for it.

Do you mean like this ?

Screen1 designer properties... (select Dark)


Yes. I did not know that was there. I want to change the background color of the screen when the device is in dark mode (and the theme too).

Device extension. Here is what I was looking for. I just noticed this block in this extension I've been using:


There are so many blocks for this extension, I find new ones every day! :laughing:

There is still one problem: How do I change the theme of the app to Dark?