Bug 424448 - PC3 ToolTip displays with visual glitches when on a skinny/narrow window that touches the screen edge
Summary: PC3 ToolTip displays with visual glitches when on a skinny/narrow window that...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: tooltips (show other bugs)
Version: 5.72.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-20 01:52 UTC by Nate Graham
Modified: 2022-10-16 15:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.74


Attachments
Visual glitch (27.07 KB, image/jpeg)
2020-07-20 01:52 UTC, Nate Graham
Details
main.qml for Color Picker applet that shows the bug (14.23 KB, text/x-qml)
2020-07-20 01:52 UTC, Nate Graham
Details
The two tooltips (42.56 KB, image/png)
2020-07-20 08:23 UTC, David Redondo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-07-20 01:52:10 UTC
Created attachment 130269 [details]
Visual glitch

While porting the Color Picker applet to PlasmaComponents3, I noticed this visual glitch using PlasmaComponents3.ToolTip for a ToolButton in an applet's CompactRepresentation on a panel. See attached screenshot.

This only happens when the applet is on a panel, not when it's on the desktop.
Comment 1 Nate Graham 2020-07-20 01:52:54 UTC
Created attachment 130270 [details]
main.qml for Color Picker applet that shows the bug
Comment 2 David Redondo 2020-07-20 08:22:23 UTC
Hmm the color picker has in fact two tooltips somehow.
Comment 3 David Redondo 2020-07-20 08:23:10 UTC
Created attachment 130273 [details]
The two tooltips
Comment 4 Nate Graham 2020-07-21 14:13:06 UTC
Yeah though I think that's a separate issue.
Comment 5 David Redondo 2020-07-21 14:14:40 UTC
I assumed one could be the border of the other tooltip. Could you try commenting the tooltip of Color Picker out?
Comment 6 Nate Graham 2020-07-23 17:30:25 UTC
Actually I just noticed this in KRunner's toolbuttons too, now that they've been ported to PC3. :( So I guess it's related to the parent window either being on a screen edge or being being skinny.
Comment 7 Nate Graham 2020-07-24 23:43:24 UTC
Happens to me on both X11 and Wayland.
Comment 8 David Redondo 2020-08-26 20:01:03 UTC
Git commit 8c37d1d225adc68cf886cd22b4191828d6f58b0b by David Redondo.
Committed on 25/08/2020 at 15:11.
Pushed by ngraham into branch 'master'.

Don't let the background become smaller than the svg

Otherwise the svg rendering results in broken looks.

M  +2    -0    src/declarativeimports/plasmacomponents3/ToolTip.qml

https://invent.kde.org/frameworks/plasma-framework/commit/8c37d1d225adc68cf886cd22b4191828d6f58b0b
Comment 9 Bug Janitor Service 2022-10-08 14:39:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/244
Comment 10 Fushan Wen 2022-10-16 15:13:19 UTC
Git commit f52c706be9c5e5262204bfcda3ed0567b6d8f019 by Fushan Wen.
Committed on 16/10/2022 at 15:11.
Pushed by fusionfuture into branch 'master'.

applets/colorpicker: port to `PC3.ToolButton` and `QtQuick.DropArea`
Related: bug 424446

A  +112  -0    applets/colorpicker/package/contents/ui/ColorCircle.qml     [License: GPL(v2.0+)]
M  +16   -105  applets/colorpicker/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/f52c706be9c5e5262204bfcda3ed0567b6d8f019