# Wallpapers

Plasma has the ability to automatically select an accent color based on the colors of the currently applied wallpaper, however, you also have the option to specify a specific accent color for more artistic control.

### Setting a custom accent color for Plasma wallpapers

You can add the `"X-KDE-PlasmaImageWallpaper-AccentColor"` property in your wallpaper's `metadata.json` file to specify the accent color that will be applied to the Plasma Desktop when the user enables the "Accent color from wallpaper" option. Below, we will set the accent color as red using the metadata file:

```json
{
    "KPlugin": {
        "Id": "TestTest",
        "License": "CC-BY-SA-4.0",
        "Name": "CustomAccentColor"
    },
    "X-KDE-PlasmaImageWallpaper-AccentColor": "red"
}
```

As expected, our newly defined accent color gets applied to the desktop whenever the user selects the associated wallpaper:

![Screenshot showing a custom accent color associated with a wallpaper](/files/wuDLtIp9xTs9FFuAyuGJ)

You can also use hex color codes instead of color names. For instance, you could replace red with #FF0000 or any other color you want:

```json
{
    "KPlugin": {
        "Id": "TestTest",
        "License": "CC-BY-SA-4.0",
        "Name": "CustomAccentColor"
    },
    "X-KDE-PlasmaImageWallpaper-AccentColor": "#FF0000"
}
```

### Light versus Dark

Sometimes the same accent color does not look right with both light and dark themes, that's why you can also select a specific color for each one. Just use `"Light"` or `"Dark"` under `"X-KDE-PlasmaImageWallpaper-AccentColor"` to set a different color for each kind of theme:

```json
{
    "KPlugin": {
        "Id": "TestTest",
        "License": "CC-BY-SA-4.0",
        "Name": "CustomAccentColor"
    },
    "X-KDE-PlasmaImageWallpaper-AccentColor": {
        "Light": "red",
        "Dark": "cyan"
    }
}
```

### Example wallpaper

You can download an example wallpaper and metadata file with a custom accent color set using the X-KDE-PlasmaImageWallpaper-AccentColor property below:

[Example wallpaper](https://github.com/Neshama1/develop-kde-org/blob/master/content/docs/plasma/wallpapers/Altai.tar.gz)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.novaflowos.com/start/kde-developer-platform/readme/plasma/_index-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
