Hello,
After recently replacing fc26 with fc29 (KDE both) I noticed that the horizontal space
between desktop icons grew, that's the width of the recrangle around the icon when
selecting it. I don't know if it's related, the longest title below icon is "Terminal 150x50"
and the width of the rectangle is just slightly wider that that, as opposed to FC26 where
the same text wrapped to form 2 lines. Maybe the new KDE code forces icon cell width
to be larger that a single line of icon title text?
Once upon a time I had similar issue because I bookmarked this advice:
https://forum.kde.org/viewtopic.php?f=289&t=136447
which advices to edit the
/usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderView.qml
file and in the "cellWidth" section to subtract some value from the calculation.
I did (luckily I saved the original file), rebooted, nothing changed,
so I continued with other more pressing problems.
This eveninig when I powered up and logged in, the desktop icons were "all over the place":
instead of being concentrated on the left and upper rows, most of them were spread on the
desktop in approximately diagonal fashion and worst of all, I couldn't activate any of
them - no single click selection, no double click activation, no LMB+dragging.
The desktop itself was sensible to RMB+konsole which I could open and reverted to the original
FolderView.qml
file.
Rebooted - still the same horror. Powered down, rebooted and got back my functional desktop.
Now the question: how to reduce the "cellwidth" without ruining the desktop?
Does the same file is still the one responsible for icons spacing on the desktop?
Can it be I subtracted too large a value?
What I changed was from:
Code:
cellWidth: {
if (root.useListViewMode) {
return gridView.width;
} else {
var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing);
if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) {
var minIconWidth = Math.max(iconWidth, units.iconSizes.small * 8);
var extraWidth = calcExtraSpacing(minIconWidth, scrollArea.viewportWidth);
return minIconWidth + extraWidth;
} else {
return iconWidth;
}
}
}
to:
Code:
cellWidth: {
if (root.useListViewMode) {
return gridView.width;
} else {
var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing) - 20;
if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) {
var minIconWidth = Math.max(iconWidth, units.iconSizes.small * 8);
var extraWidth = calcExtraSpacing(minIconWidth, scrollArea.viewportWidth);
return minIconWidth + extraWidth;
} else {
return iconWidth;
}
}
}
Is there anywhere a GUI configuration of that parameter, like editing a theme?
TIA,
kaza.