Skip to content

Commit

Permalink
Also run picture-uri-dark, ref #44
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Oct 29, 2024
1 parent b87789e commit 5783ab6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cinnamon.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (c *Cinnamon) SetWallpaper(imageFilename string) error {
}
}

// Set the desktop wallpaper (also set it if it is already set, in case
// the contents have changed)
// Set the dark desktop wallpaper (also set it if it is already set)
_ = g.Set("picture-uri-dark", "file://"+imageFilename)

// Set the desktop wallpaper (also set it if it is already set)
return g.Set("picture-uri", "file://"+imageFilename)
}
6 changes: 4 additions & 2 deletions deepin.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ func (d *Deepin) SetWallpaper(imageFilename string) error {
}
}

// Set the desktop wallpaper (also set it if it is already set, in case
// the contents have changed)
// Set the dark desktop wallpaper (also set it if it is already set)
_ = g.Set("picture-uri-dark", "file://"+imageFilename)

// Set the desktop wallpaper (also set it if it is already set)
return g.Set("picture-uri", "file://"+imageFilename)
}
6 changes: 4 additions & 2 deletions gnome3.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ func (g3 *Gnome3) SetWallpaper(imageFilename string) error {
}
}

// Set the desktop wallpaper (also set it if it is already set, in case
// the contents have changed)
// Set the dark desktop wallpaper (also set it if it is already set)
_ = g.Set("picture-uri-dark", "file://"+imageFilename)

// Set the desktop wallpaper (also set it if it is already set)
return g.Set("picture-uri", "file://"+imageFilename)
}

0 comments on commit 5783ab6

Please sign in to comment.