Jump to content

Plasma/Create a Global Theme Package

From KDE UserBase Wiki

How to create your own Look and Feel package

First of all, we need to install the plasma-sdk package, which will give us access to the Plasma Global Theme Explorer. If plasma-sdk's maintainers in your distribution have neglected to create a .desktop for the Plasma Global Theme Explorer, simply launch lookandfeelexplorer through the terminal and the application window will open.

Now that the Global Theme Explorer is open, the steps are very straightforward:

  • Step 1: Click on the hamburger menu
  • Step 2: Click on "New Theme..."
  • Step 3: Fill out all the fields (ALL of them) and hit OK

This will create a global theme based on your Plasma configuration under ~/.local/share/plasma/look-and-feel/, however it unfortunately will not create a metadata.json file for you. It also does not save the splash screen nor SDDM theme.

Here is a basic template for a look-and-feel metadata.json:

{
    "KPackageStructure": "Plasma/LookAndFeel",
    "KPlugin": {
        "Authors": [
            {
                "Email": "X",
                "Name": "X"
            }
        ],
        "Category": "Plasma Look And Feel",
        "Description": "X",
        "EnabledByDefault": true,
        "Id": "X",
        "License": "X",
        "Name": "X",
        "ServiceTypes": [
            "Plasma/LookAndFeel"
        ],
        "Version": "X.X",
        "Website": "X
    },
    "X-KPackage-Dependencies": [
    "kns://aurorae.knsrc/api.kde-look.org/INSERTNUMBERIFAPPLICABLE",
    "kns://colorschemes.knsrc/api.kde-look.org/INSERTNUMBERIFAPPLICABLE",
    "kns://plasma-themes.knsrc/api.kde-look.org/INSERTNUMBERIFAPPLICABLE",
    "kns://icons.knsrc/api.kde-look.org/INSERTNUMBERIFAPPLICABLE",
    "kns://wallpaper.knsrc/api.kde-look.org/INSERTNUMBERIFAPPLICABLE"
    ]
}