Commit d9227738 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Add special wallpapers knsrc for mobile use

This patch introduces a new knsrc for wallpapers that's supposed to be
used for mobile devices. While many of the existing wallpapers on the
store do work for mobile use, a great many of them only focus on desktop
style form factors, and since there's mobile-focused categories on the
store now, we probably want to make use of that.
parent 85b1a822
......@@ -37,7 +37,8 @@ install(TARGETS plasma_wallpaper_imageplugin DESTINATION ${KDE_INSTALL_QMLDIR}/o
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/wallpapers/image)
configure_file(wallpaper.knsrc.cmake ${CMAKE_CURRENT_BINARY_DIR}/wallpaper.knsrc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wallpaper.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
configure_file(wallpaper-mobile.knsrc.cmake ${CMAKE_CURRENT_BINARY_DIR}/wallpaper-mobile.knsrc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wallpaper.knsrc ${CMAKE_CURRENT_BINARY_DIR}/wallpaper-mobile.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
plasma_install_package(imagepackage org.kde.image wallpapers wallpaper)
plasma_install_package(slideshowpackage org.kde.slideshow wallpapers wallpaper)
......
......@@ -376,7 +376,7 @@ ColumnLayout {
}
NewStuff.Button {
Layout.alignment: Qt.AlignRight
configFile: "wallpaper.knsrc"
configFile: Kirigami.Settings.isMobile ? "wallpaper-mobile.knsrc" : "wallpaper.knsrc"
text: i18nd("plasma_wallpaper_org.kde.image", "Get New Wallpapers...")
viewMode: NewStuff.Page.ViewMode.Preview
onChangedEntriesChanged: imageWallpaper.newStuffFinished();
......
[KNewStuff3]
Name=Wallpapers
Name[ast]=Fondos de pantalla
Name[ca]=Fons de pantalla
Name[ca@valencia]=Fons de pantalla
Name[cs]=Tapety
Name[da]=Baggrundsbilleder
Name[de]=Hintergrundbilder
Name[el]=Ταπετσαρίες
Name[en_GB]=Wallpapers
Name[es]=Fondos del escritorio
Name[et]=Taustapildid
Name[eu]=Horma-paperak
Name[fi]=Taustakuvat
Name[fr]=Fonds d'écran
Name[gl]=Fondos de escritorio
Name[he]=רקעים
Name[hu]=Háttérképek
Name[id]=Wallpaper
Name[it]=Sfondi
Name[ko]=배경 그림
Name[lt]=Darbalaukio fonai
Name[lv]=Tapetes
Name[nl]=Achtergrondafbeeldingen
Name[nn]=Bakgrunnsbilete
Name[pa]=ਵਾਲਪੇਪਰ
Name[pl]=Tapety
Name[pt]=Papéis de Parede
Name[pt_BR]=Papéis de parede
Name[ru]=Обои
Name[sk]=Tapety
Name[sl]=Slike ozadij
Name[sr]=тапети
Name[sr@ijekavian]=тапети
Name[sr@ijekavianlatin]=tapeti
Name[sr@latin]=tapeti
Name[sv]=Skrivbordsunderlägg
Name[tr]=Duvar Kağıtları
Name[uk]=Зображення тла
Name[x-test]=xxWallpapersxx
Name[zh_CN]=壁纸
Name[zh_TW]=桌布
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
Categories=Plamo Wallpapers
TargetDir=wallpapers
Uncompress=subdir-archive
AdoptionCommand=@QtBinariesDir@/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'for (var i in desktops()) { d = desktops()[i]; d.wallpaperPlugin = "org.kde.image"; d.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"]; d.writeConfig("Image", "%f") }'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment