mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 00:47:22 +00:00
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:
parent
5c319d2e7e
commit
6e67728f46
10 changed files with 59 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Theme=breeze-dark
|
|||
name=default
|
||||
|
||||
[Wallpaper]
|
||||
Image=Next
|
||||
Image=SHIFT
|
||||
|
||||
# Set default cursor theme
|
||||
[kcminputrc][Mouse]
|
||||
|
|
|
|||
24
shell/contents/layout.js.in
Normal file
24
shell/contents/layout.js.in
Normal 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")
|
||||
}
|
||||
}
|
||||
7
wallpapers/CMakeLists.txt
Normal file
7
wallpapers/CMakeLists.txt
Normal 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
|
||||
)
|
||||
BIN
wallpapers/SHIFT/contents/images/5120x2880.png
Normal file
BIN
wallpapers/SHIFT/contents/images/5120x2880.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 246 KiB |
2
wallpapers/SHIFT/contents/images/5120x2880.png.license
Normal file
2
wallpapers/SHIFT/contents/images/5120x2880.png.license
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: 2026 Luiza Balaur
|
||||
SPDX-License-Identifier: EUPL-1.2
|
||||
BIN
wallpapers/SHIFT/contents/images_dark/5120x2880.png
Normal file
BIN
wallpapers/SHIFT/contents/images_dark/5120x2880.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 236 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: 2026 Luiza Balaur
|
||||
SPDX-License-Identifier: EUPL-1.2
|
||||
12
wallpapers/SHIFT/metadata.json
Normal file
12
wallpapers/SHIFT/metadata.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"KPlugin": {
|
||||
"Authors": [
|
||||
{
|
||||
"Name": "Luiza Balaur"
|
||||
}
|
||||
],
|
||||
"Id": "SHIFT",
|
||||
"License": "EUPL-1.2",
|
||||
"Name": "SHIFT Light / SHIFT Dark"
|
||||
}
|
||||
}
|
||||
2
wallpapers/SHIFT/metadata.json.license
Normal file
2
wallpapers/SHIFT/metadata.json.license
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: 2026 Luiza Balaur
|
||||
SPDX-License-Identifier: EUPL-1.2
|
||||
Loading…
Reference in a new issue