KDE/PLASMA splash screen customization

kdekde-plasma-workspace

I would like to change my splash screen image in KDE/PLASMA.

I have made a custom theme, and changed the pic locate in

/usr/share/plasma/look-and-feel/org.kde.my_theme.desktop/contents/splash/images/kde.svgz

I would like to change the size of the picture though. This should be controlled in the file:

/usr/share/plasma/look-and-feel/org.kde.arch_custom.desktop/contents/splash/Splash.qml

which reads

Rectangle {
    id: topRect
     width:  parent.width
     height: (root.height / 3) - bottomRect.height - 1
    y: root.height
    color: "#4C000000"
    Image {
        source: "images/kde.svgz"
        anchors.centerIn: parent
        sourceSize.height: 128
        sourceSize.width: 128
    }
}

I have tried to edit different part of this, but the pic is always the same. What should I edit to change the splash image size change?

Best Answer

Open the kde.svgz file with inkscape resized the frame first then modify your image to match the frame. I make the image double what I need because once you resized everything in inkscape you control the actual size that's viewed by editing your main.qml file.

That to control the size just modify:

sourceSize.height: 128
sourceSize.width: 128

E.g., mine is set like this:

Rectangle {
    id: topRect
    width: parent.width
    height: (root.height / 3) - bottomRect.height - 1
    y: root.height
    color: "#4C000000"
    Image {
        source: "images/kde.svgz"
        anchors.centerIn: parent
        sourceSize.height: 300
        sourceSize.width: 300
    }
}

After doing that save and test your splash. If you followed correctly you should end up with something like:

ModdedSplash

Related Question