Use dark theme icon in Fleet Desktop by default (#7973)

This seems to be a better fit as a default due to what renders best in Ubuntu.

Keeps themes the same as prior Desktop releases.
This commit is contained in:
Zach Wasserman 2022-09-27 08:56:16 -07:00 committed by GitHub
parent 818d603274
commit f7b341cb6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,9 @@ func main() {
log.Info().Msg("ready")
systray.SetTooltip("Fleet Desktop")
systray.SetTemplateIcon(iconLight, iconLight)
// Default to dark theme icon because this seems to be a better fit on Linux (Ubuntu at
// least). On macOS this is used as a template icon anyway.
systray.SetTemplateIcon(iconDark, iconDark)
// Theme detection is currently only on Windows. On macOS we use template icons (which
// automatically change), and on Linux we don't handle it yet (Ubuntu doesn't seem to change