Apply line style also to main window