Bug 490402 - Desktop file/folder names overflow selection highlight with elevated font size
Summary: Desktop file/folder names overflow selection highlight with elevated font size
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: 6.1.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 496857 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-17 12:21 UTC by Rodeffs
Modified: 2024-12-11 22:29 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A video depicting the issues (3.43 MB, video/x-matroska)
2024-07-17 12:21 UTC, Rodeffs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodeffs 2024-07-17 12:21:33 UTC
Created attachment 171737 [details]
A video depicting the issues

SUMMARY

After updating KDE frameworks to the version 6.4.0 I've encountered several issues with desktop icons

STEPS TO REPRODUCE
1. Create a shotcut on the desktop with a name that doesn't fit in one line
2. Try to open it after hovering cursor over it and then moving the cursor away
3. Try to drag the icon across the screen

OBSERVED RESULT
1. The name doesn't fit in the highlighted frame
2. The shortcut doesn't open with repeated clicks
3. Sometimes the icon lags and snaps back to its previous place
4. Sometimes letters collide with each other and are a wrong size

EXPECTED RESULT
1. The name should fit in the highlighted frame
2. If the cursor is over the shortcut, it must open after a double click regardless  
3. The icon should remain in place
4. Letters should adhere to the specified font

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Resolution: 2560x1600 (16:10)
Scale: 120%
Refresh rate: 120 Hz
Font: Noto Sans 13pt
Comment 1 Rodeffs 2024-07-17 12:23:35 UTC
Forgot to mention, my graphics platform is wayland
Comment 2 David Edmundson 2024-07-18 13:30:31 UTC
Can you share your folderview settings: 

Right click -> Desktop and wallpaper -> Icons
Comment 3 Rodeffs 2024-07-18 15:34:06 UTC
(In reply to David Edmundson from comment #2)
> Can you share your folderview settings: 
> 
> Right click -> Desktop and wallpaper -> Icons

Arrangement: Top to Bottom, Align left
Lock in place: No
Sorting: Manual
Icon size: 4
Label width: Medium
Text lines: 2
When hovering over icons: Show folder preview popups
Rename: yes
Previews: yes
Configure Preview Plugins: all apart from text files
Comment 4 Nate Graham 2024-10-31 21:20:19 UTC
Can confirm, it's this bit:

> Font: Noto Sans 13pt

The height is gridUnit-based, not based on the actual height of the font. And we made gridUnit no longer auto-adjust with the font height.
Comment 5 Nate Graham 2024-11-14 15:33:53 UTC
So, fundamentally we have two options:
1. Stop basing the height on GridUnit here in this code, and explicitly use the metrics of the actual text.
2. Revert the change to make GridUnit static (see Bug 493687)

See also Bug 493687 comment 1
Comment 6 Nate Graham 2024-12-11 22:29:51 UTC
*** Bug 496857 has been marked as a duplicate of this bug. ***