Skip to content

Commit

Permalink
Revert "update to follow PR suggestions"
Browse files Browse the repository at this point in the history
This reverts commit dc02990.
  • Loading branch information
lucor committed Jan 14, 2023
1 parent dc02990 commit 9bcee24
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/app_xdg.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ func findFreedestktopColorScheme() fyne.ThemeVariant {
// 0: No preference
// 1: Prefer dark appearance
// 2: Prefer light appearance
if value == 1 {
switch value {
case 2:
return theme.VariantLight
case 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 9bcee24

Please sign in to comment.