Bug 480009 - KRunner prediction text doesn't line up with typed text after font size change without restarting KRunner
Summary: KRunner prediction text doesn't line up with typed text after font size chang...
Status: CONFIRMED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-18 18:39 UTC by fin-w
Modified: 2024-10-18 23:12 UTC (History)
6 users (show)

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


Attachments
Krunner open with the typed text misaligned with the predicted text. (230.55 KB, image/png)
2024-01-18 18:39 UTC, fin-w
Details
KRunner with Noto Sans in sizes: 10pt, 8pt, 6pt. (46.87 KB, image/png)
2024-08-09 08:43 UTC, Mariusz Glebocki
Details
Krunner with Liberation Sans 10pt (13.76 KB, image/png)
2024-10-18 23:12 UTC, Mariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fin-w 2024-01-18 18:39:52 UTC
Created attachment 165018 [details]
Krunner open with the typed text misaligned with the predicted text.

Krunner seems to predict what you will type based on previously entered searches. These show up semi-opaque, while the text you type is opaque. When the ("General") font size is changed in System Settings, the prediction text in Krunner does not line up with the typed text. Neither font changes size, but the typed text is always vertically centred while the prediction text is aligned with the top of the search box. The icons to the left and right within the search box change size (i.e. change the vertical size of the box) and this seems to be causing the typed & predicted text be misaligned.

Both typed and predicted text should be vertically centred, and either the both texts should reflect the ("General") font size set in System Settings, or else the other Krunner elements should not scale up / down when the font size is changed. 

KDE Neon Unstable, updated today
Plasma 6.0.80
Frameworks 5.249.0
Qt 6.6.1
Wayland
Comment 1 fin-w 2024-04-11 23:33:12 UTC
Similarly, with Plasma 6.0.3 on Arch, searching seems to be case-independent, but if the case does not follow the case of the previously searched string, then the prediction displays in a different case to the string currently typed. E.g when entering a search "KONS" the prediction in the background might be "konsole" which means the different cases overlap each other and it looks broken and is hard to read.

I would say the only prediction text that should be shown are the letters after the end of the typed text, i.e. for a search string "KONS" the prediction should add only "ole" to the end. Then, if both typed text and prediction are part of the same styling (apart from their text colours) then perhaps the original bug report would be resolved too...
Comment 2 Mariusz Glebocki 2024-08-09 08:43:37 UTC
Created attachment 172432 [details]
KRunner with Noto Sans in sizes: 10pt, 8pt, 6pt.

I can reproduce the problem with fonts "small enough", even after restarting KRunner.
In the attached image the 10pt font renders OK, while 8 and 6 trigger the bug.
Comment 3 Mariusz 2024-10-18 23:12:16 UTC
Created attachment 175006 [details]
Krunner with Liberation Sans 10pt

Typed text seems like fuzzy.