mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 11:32:42 +01:00
bb700780ef
Move common qml stuff into ScreenPlayUtil
26 lines
816 B
JavaScript
26 lines
816 B
JavaScript
function isWallpaper(type) {
|
|
return type === InstalledType.VideoWallpaper
|
|
|| type === InstalledType.HTMLWallpaper
|
|
|| type === InstalledType.QMLWallpaper
|
|
|| type === InstalledType.GifWallpaper
|
|
|| type === InstalledType.WebsiteWallpaper
|
|
|| type === InstalledType.GodotWallpaper
|
|
}
|
|
|
|
function isWidget(type) {
|
|
return type === InstalledType.HTMLWidget || type === InstalledType.QMLWidget
|
|
}
|
|
|
|
function isScene(type) {
|
|
return type === InstalledType.HTMLWallpaper
|
|
|| type === InstalledType.QMLWallpaper
|
|
|| type === InstalledType.WebsiteWallpaper
|
|
|| type === InstalledType.GodotWallpaper
|
|
}
|
|
|
|
function isVideo(type) {
|
|
return type === InstalledType.VideoWallpaper
|
|
|| type === InstalledType.GifWallpaper
|
|
}
|
|
|