Fix build

Also remove a warning, and make the main window darkened when settings is open.