reverting from max to min removes dark theme