Pages
Developer Documentation
On this page

Wallpapers

SonicDE can select an accent color automatically from the colors of the current wallpaper. A wallpaper can also specify one, for more artistic control.

Setting a custom accent color

Add the X-KDE-PlasmaImageWallpaper-AccentColor property to your wallpaper's metadata.json to set the accent color applied when the user enables the "Accent color from wallpaper" option. This sets it to red:

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

You can also use a hex color code instead of a color name:

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

Light versus dark

The same accent color doesn't always look right with both light and dark themes, so you can set one for each. Use Light and Dark under the property. If the color scheme is light, or there is no Dark entry, the Light color is used.

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

Adapted for SonicDE from develop.kde.org/docs/wallpapers/ by Carl Schwan, licensed under CC BY-SA 4.0.

Edit this page on GitHub

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.