This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make plasmoids without background?

Tags: None
(comma "," separated)
ChemBro
Registered Member
Posts
69
Karma
0
OS
Hello there!

I want to make a plasmoid without its background, which was possible in KDE 4.x. In KDE4, you wrote into your main.qml file this to have no background:

Code: Select all
Component.onCompleted: {
    plasmoid.setBackgroundHints( 0 )
}


Though this doesn't seem to be working in Plasma 5.2. In the documentation for Plasma 5 the part with the "setBackgroundHints" is also missing.

So my question is: How do I make a plasmoid without a background in Plasma 5?
bshah
Registered Member
Posts
77
Karma
0
OS
in a root item,
Code: Select all
Plasmoid.backgroundHints: "NoBackground"
will help you for this
bshah
Registered Member
Posts
77
Karma
0
OS
ChemBro
Registered Member
Posts
69
Karma
0
OS
Thank you. That's what I needed, though you still need to do:

Code: Select all
import org.kde.plasma.plasmoid 2.0


At least I didn't know I need to import that.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell