Спочатку вам слід встановити Навігатор темами вигляду Плазми, який є частиною пакунка plasma-sdk.
Навігатор темами вигляду Плазми є доволі простою програмою. На правій панелі програми розташовано три пункти:
You can now chose your freshly created look and feel theme from the list of available themes and edit it in the main window.
Ви також можете додати зображення, яке буде використано для попереднього перегляду і яке зберігатиметься у теці .local/share/plasma/look-and-feel/назва_вашої_теми/contents/preview
Спочатку, вам слід додати рядок
X-KPackage-Dependencies=
до вашого файла metadata.desktop. Погляньом на цей приклад:
Схеми кольорів Плазми Elementary Luna
X-KPackage-Dependencies=kns://colorschemes.knsrc/api.kde-look.org/1001720
kns:// — назва протоколу
colorschemes.knsrc — тип ресурсу, який слід отримати (у нашому випадку це схема кольорів). Ось список доступних ресурсів у моїй системі (/etc/xdg):
api.kde-look.org/1001720 - the url to the content stored on the server, from my experience api.kde-look.org/ is always the same, only id changes. You can get the id from the kde store url https://store.kde.org/p/1001720 1001720.
Ви можете вказати декілька залежностей. Ось приклад з metadata.desktop United:
X-KPackage-Dependencies=kns://colorschemes.knsrc/api.kde-look.org/1001495,kns://plasma-themes.knsrc/api.kde-look.org/998797,kns://aurorae.knsrc/api.kde-look.org/1136954
У JSON:
X-KPackage-Dependencies: { "kns://colorschemes.knsrc/api.kde-look.org/1001495", "kns://plasma-themes.knsrc/api.kde-look.org/998797", "kns://aurorae.knsrc/api.kde-look.org/1136954" }
Встановити пакунок обгортки можна за допомогою команди, відданої з термінала:
kpackagetool5 -i "назва вашої теми"
Тему буде встановлено до .local/share/plasma/look-and-feel/
This will also install dependencies specified in metadata.desktop, so you can test it locally on your system.
Type kpackagetool5 -h
to see more options.
You can specify system dependencies using their AppStream URI scheme. More information about it can be found here.
To look up what's the resource you are looking for, you can check on your system by calling appstreamcli search <something>
When the Look and Feel package is installed, if a system dependency is specified, it will be the system deciding how to install it, most likely using PackageKit.