copied style from basic viewer and gbat.