In Preferences > General > Miscellaneous, when changing from Light Mode or Dark Mode to Use macOS system appearance, Sourcetree gets stuck on that setting even if you change back to manually setting Light or Dark mode.
I've tested on macOS Mojave v10.14.0 through to v10.14.4