Add SHIFT wallpaper as the shell default

Add a wallpapers/SHIFT package with light and dark images. Set
Image=SHIFT in the look-and-feel defaults.

Plasma's org.kde.image backend requires a directory URL, not a
bare package ID, when writing Image= in a layout.js. Use
configure_file to stamp the resolved KDE_INSTALL_WALLPAPERDIR
path into the installed layout.js at build time.
This commit is contained in:
Marco Allegretti 2026-05-01 09:30:16 +02:00
parent 5c319d2e7e
commit 6e67728f46
10 changed files with 59 additions and 3 deletions

View file

@ -138,12 +138,19 @@ include(CheckIncludeFiles)
ecm_find_qmlmodule(org.kde.pipewire 0.1)
plasma_install_package(lookandfeel org.kde.breeze.mobile look-and-feel lookandfeel)
plasma_install_package(shell org.kde.plasma.mobileshell shells)
set(SHIFT_DEFAULT_WALLPAPER_URL "file://${KDE_INSTALL_FULL_WALLPAPERDIR}/SHIFT/")
set(SHIFT_SHELL_PACKAGE_DIR "${CMAKE_CURRENT_BINARY_DIR}/shell")
file(REMOVE_RECURSE "${SHIFT_SHELL_PACKAGE_DIR}")
file(COPY shell/ DESTINATION "${SHIFT_SHELL_PACKAGE_DIR}" PATTERN "layout.js.in" EXCLUDE)
configure_file(shell/contents/layout.js.in "${SHIFT_SHELL_PACKAGE_DIR}/contents/layout.js" @ONLY)
plasma_install_package(lookandfeel org.shift.mobile look-and-feel lookandfeel)
plasma_install_package(${SHIFT_SHELL_PACKAGE_DIR} org.kde.plasma.mobileshell shells)
add_subdirectory(bin)
add_subdirectory(color-schemes)
add_subdirectory(icons)
add_subdirectory(wallpapers)
add_subdirectory(components)
add_subdirectory(containments)
add_subdirectory(devices)

View file

@ -18,7 +18,7 @@ Theme=breeze-dark
name=default
[Wallpaper]
Image=Next
Image=SHIFT
# Set default cursor theme
[kcminputrc][Mouse]

View file

@ -0,0 +1,24 @@
// SPDX-FileCopyrightText: 2014 Aaron J. Seigo
// SPDX-FileCopyrightText: 2014-2019 Marco Martin <mart@kde.org>
// SPDX-FileCopyrightText: 2015-2021 Bhushan Shah <bshah@kde.org>
// SPDX-FileCopyrightText: 2021 Aleix Pol <apol@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
// Load panel layout
loadTemplate("org.kde.plasma.mobile.defaultNavigationPanel");
loadTemplate("org.kde.plasma.mobile.defaultStatusBar");
// Set wallpaper plugin
var shiftDefaultWallpaperUrl = "@SHIFT_DEFAULT_WALLPAPER_URL@";
var desktopsArray = desktopsForActivity(currentActivity());
for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = "org.kde.image";
desktopsArray[j].currentConfigGroup = ["Wallpaper", "org.kde.image", "General"];
desktopsArray[j].writeConfig("Image", shiftDefaultWallpaperUrl);
if (j == 0) {
// Add meta shortcut
desktopsArray[0].currentConfigGroup = ["Shortcuts"]
desktopsArray[0].writeConfig("global", "Meta+F1")
}
}

View file

@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2026 SHIFT Contributors
# SPDX-License-Identifier: EUPL-1.2
install(DIRECTORY SHIFT
DESTINATION ${KDE_INSTALL_WALLPAPERDIR}
PATTERN "*.license" EXCLUDE
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2026 Luiza Balaur
SPDX-License-Identifier: EUPL-1.2

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2026 Luiza Balaur
SPDX-License-Identifier: EUPL-1.2

View file

@ -0,0 +1,12 @@
{
"KPlugin": {
"Authors": [
{
"Name": "Luiza Balaur"
}
],
"Id": "SHIFT",
"License": "EUPL-1.2",
"Name": "SHIFT Light / SHIFT Dark"
}
}

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2026 Luiza Balaur
SPDX-License-Identifier: EUPL-1.2