update theme logic for stylib
fix #2