Hello everyone.

After I changed the default font in KDE Plasma 6.1.4 on Bazzite to Atkinson Hyperlegible, all desktop icons have weird line spacing in the name. Notice how .png is hanging behind tge icon for TextFile sh. Changing the font size does nothing. Only if I switch back to the defaults does it fix itself. Any idea how I can keep Atkinson as a font and fix this issue?

Edit: In edit mode (right click on desktop) I can set the Text lines to 1 which makes things bearable. Still no way to manage the weird spacing issue. Seems that not all icon are affected. Couldn’t find a pattern.

You are viewing a single thread.
View all comments
4 points

If you open /usr/share/plasma/plasmoids/org.kde.plasma.icon/main.qml and search for line there’s a section called PlasmaExtras.ShadowedLabel which seems to correspond with icon text and there’s a line maximumLineCount: 2 you could try reducing that to 1 and it might fix your issue.

It looks like KDE Plasma is based on QT6 and the icons I believe are a QT6 Label so you can also add some styling to it yourself. Here’s the documentation for it: https://doc.qt.io/qt-6/qml-qtquick-controls-label-members.html

There is a property called lineHeight so you could just add that to the PlasmaExtras.ShadowedLabel and see if that fixes it.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.5K

    Monthly active users

  • 5.8K

    Posts

  • 162K

    Comments