Reply to topic

Cotton balls for readability

begonia
Registered Member
Posts
146
Karma
0
OS

Cotton balls for readability

Tue Jul 04, 2017 10:27 am
Hi,
I use a rather transparent plasma desktop theme. I blur it of course. But can plasma draw white cotton balls behind the text in the application launcher to improve the readability. That would be great. Is there a way to do that?
I hope you understand what i am saying. I don't know the official term for it.
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Cotton balls for readability

Thu Jul 06, 2017 7:29 am
The Plasma 5 can draw what the Qt/qml can draw. Plasma 5 is using qml scripts to draw the plasmoids. Qml wiki: https://en.wikipedia.org/wiki/QML .

The user can edit the plasmoids: /usr/share/plasma/plasmoids/... A bit better way is to copy the scripts to the user's home and rename the plasmoids(/metadata.desktop and metadata.json). Getting started: https://techbase.kde.org/Development/Tu ... ingStarted .

Examples from the KDE Forums:
- Why is Plasma so configurable and Kickoff is not: viewtopic.php?f=17&t=131914#p354303
- My Digital Clock: viewtopic.php?f=17&t=134970&p=361132#p361132

An example - Magick Marker & Kickoff

With the Plasma 5.10.

Slipping a rectangle under the text - Text Background color in QML: https://phanective.wordpress.com/2011/0 ... color-qml/ .

Simply copying the /usr/share/plasma/plasmoids/org.kde.plasma.kickoff/ to $HOME/.local/share/plasma/plasmoids/org.kde.plasma.kickoff/. The KDE will prefer the user plasmoid over the system plasmoids. A bit better way is to copy the scripts to the user's home and rename the plasmoids. This is only an example so cutting the corners.

Editing the $HOME/.local/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/KickoffItem.qml

Editing the 'id: titleElement' and the 'id: subTitleElement':
Image
Slipping rectangle under the title and the subtitle text.

Sample KickoffItem.qml: https://pastebin.com/BxyrY6m6

Saving the KickoffItem.qml and restarting the plasmashell...

Image

Qml colors: http://doc.qt.io/qt-5/qml-color.html . The subtitle rectangle has rounded corners:
Image

More of the Qml rectangles: http://doc.qt.io/qt-5/qml-qtquick-rectangle.html

More

There is an option to slip an image under the text if the user wants to use a 'cotton ball' background. More of the Qml images: http://doc.qt.io/qt-5/qml-qtquick-image.html
begonia
Registered Member
Posts
146
Karma
0
OS

Re: Cotton balls for readability

Fri Jul 07, 2017 10:34 am
Thank you so much for your reply. I will look in to that.

 
Reply to topic

Bookmarks



Who is online

Registered users: arkascha, Baidu [Spider], Bing [Bot], egor, gfielding, Google [Bot], minson, naturepi, nicolaf, nlutterman, rblackwell, Section_8, Sogou [Bot], vpinon