Fixed invalid typehint from previous commit and activate theme should be limited to allowed type.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.1' into 2.2