Code Refactor: Themes.

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