Add support for default connection line colour in Preferences

* Also fix some bugs from before