added code to change look and feel between metal and osx