Code Enhancement: Theme related support.

Signed-off-by: Pengcheng Bian <pbian@actuate.com>