for #24718: add two remote firefox wallpapers

This commit is contained in:
MatthewTighe 2022-04-11 10:47:59 -07:00 committed by mergify[bot]
parent 52d16c8504
commit eca84dfa3d
2 changed files with 16 additions and 0 deletions

View File

@ -58,6 +58,16 @@ sealed class Wallpaper {
) : Remote() {
override val remoteParentDirName: String = "house"
}
/**
* Wallpapers that are original Firefox creations.
*/
data class Firefox(
override val name: String,
) : Remote() {
override val expirationDate: Date? = null
override val remoteParentDirName: String = "firefox"
}
}
companion object {

View File

@ -243,6 +243,12 @@ class WallpaperManager(
Wallpaper.Remote.House(
"mei",
),
Wallpaper.Remote.Firefox(
"twilight-hills"
),
Wallpaper.Remote.Firefox(
"beach-vibe"
),
)
private val availableWallpapers = listOf(defaultWallpaper) + localWallpapers + remoteWallpapers
private const val ANIMATION_DELAY_MS = 1500L