Bug 496845

Summary: Tooltip font is too big
Product: [Applications] kate Reporter: leo5t
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Tooltip screenshot

Description leo5t 2024-11-29 18:56:50 UTC
Created attachment 176225 [details]
Tooltip screenshot

SUMMARY
Tooltip font seems too big. Although it is set equal to text editor font, it looks bigger.
See tooltip.cpp line 136

STEPS TO REPRODUCE
1. Hover some code in the text editor to show the tooltip

OBSERVED RESULT
Tooltip font is too large, it is very difficult to read

EXPECTED RESULT
Smaller font (at least the same size configured for the editor)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.1-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-2500K CPU @ 3.30GHz
Memory: 11,7 GiB of RAM
Graphics Processor: NVC1
Comment 1 Waqar Ahmed 2024-11-29 18:59:22 UTC
Which kate version are you using
Comment 2 Waqar Ahmed 2024-11-29 19:02:30 UTC
The font is always the same as editor or 1pt less if the editor font size is greater than 11

If there are headers in the tooltip markdown, then of course they will appear a little bigger. 

Besides that I am not sure what can be done
Comment 3 leo5t 2024-11-29 21:53:12 UTC
I understand this is more a feature request than a bug, sorry.
It would be nice to have smaller text inside the popup, possibly using the application font instead of the one of the editor area
Comment 4 Christoph Cullmann 2024-12-01 13:53:27 UTC
We could try to use the font size of the ui instead of the editor, but not sure if that is always better.
Comment 5 leo5t 2024-12-01 21:57:28 UTC
Probably the best choice depend on the type of text being displayed, if it source code or documentation
Comment 6 Bug Janitor Service 2024-12-05 21:33:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1666
Comment 7 Christoph Cullmann 2024-12-26 20:42:39 UTC
https://invent.kde.org/utilities/kate/-/merge_requests/1666 got merged.