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

QML to change the kicker height

Tags: None
(comma "," separated)
mkrema
Registered Member
Posts
2
Karma
0

QML to change the kicker height

Tue Jan 31, 2017 7:30 pm
Hello,

I am running the latest Mint with KDE 5.8 and I am trying to change the kicker widget height on the panel. My panel is vertically oriented and quite wide (in order to display captions in the task manager items). This makes the launcher quite large. I would prefer a small launcher, 45 px max to save the space. I went through files in the /usr/share/plasma/plasmoids folder but failed to locate the proper file to edit. Which files should I edit and in which way?

Thanks you.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: QML to change the kicker height

Wed Feb 01, 2017 11:41 am
Code: Select all
$ locate kicker
...
/usr/share/plasma/plasmoids/org.kde.plasma.kicker
...



If the problem is huge icon (compact representation of the KIcker):
Image

One way is to add size constraits: http://doc.qt.io/qt-5/qtquicklayouts-ov ... onstraints

Adding maximum height to the /org.kde.plasma.kicker/contents/ui/CompactRepresentation.qml; line 51:
Code: Select all
root.Layout.maximumHeight = 45;


Image


After the plasmashell restart the icon maximum is 45:

Image


Notes

Plasma upgrade will overwrite the /usr/share/plasma/plasmoids/...
User can copy the plasmoids to the ~/.local/share/plasma/plasmoids/...
After you edit the plasma qml scripts you will need to restart the plasmashell.

Earlier

- change size of application dashboard: viewtopic.php?f=66&t=133156
- Menu size. Resize or going to be Resizable?: viewtopic.php?f=289&t=128771

Last edited by Rog131 on Wed Feb 01, 2017 12:01 pm, edited 1 time in total.
mkrema
Registered Member
Posts
2
Karma
0

Re: QML to change the kicker height

Wed Feb 01, 2017 12:00 pm
That worked splendidly. Thank you very much.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]