Skip to content

Commit

Permalink
update to follow PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucor committed Jan 14, 2023
1 parent 0dffef9 commit dc02990
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions app/app_xdg.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,12 @@ func findFreedestktopColorScheme() fyne.ThemeVariant {
// 0: No preference
// 1: Prefer dark appearance
// 2: Prefer light appearance
switch value {
case 2:
return theme.VariantLight
case 1:
if value == 1 {
return theme.VariantDark
default:
// Default to light theme to support Gnome's default see https://github.com/fyne-io/fyne/pull/3561
return theme.VariantLight
}

// Default to light theme for 0, 2 and unknown values to support Gnome's default see https://github.com/fyne-io/fyne/pull/3561
return theme.VariantLight
}

func (a *fyneApp) SendNotification(n *fyne.Notification) {
Expand Down

0 comments on commit dc02990

Please sign in to comment.