Skip to content

Commit

Permalink
fix(tray): Fix dynamic icon color comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 14, 2024
1 parent 6f75950 commit d5a9e0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/tray/systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ func (t *Tray) onReady(ctx context.Context) func() { //nolint:gocyclo
} else {
if icon, err := t.dynamicIcon.Generate(msg.Properties); err == nil {
systray.SetTitle("")
switch t.config.DynamicIcon.FontColor.Color {
case color.White:
if color.NRGBAModel.Convert(color.White) == t.config.DynamicIcon.FontColor.Color {
systray.SetTemplateIcon(icon, icon)
default:
} else {
systray.SetIcon(icon)
}
} else {
Expand Down

0 comments on commit d5a9e0b

Please sign in to comment.