{"id":6435,"date":"2016-02-17T16:42:58","date_gmt":"2016-02-17T16:42:58","guid":{"rendered":"http:\/\/notmart.org\/blog\/?p=6435"},"modified":"2016-02-17T16:42:58","modified_gmt":"2016-02-17T16:42:58","slug":"tooltip-handling","status":"publish","type":"post","link":"https:\/\/notmart.org\/blog\/2016\/02\/tooltip-handling\/","title":{"rendered":"Tooltip handling"},"content":{"rendered":"<p>An informational tooltip in Plasma is an item that shows extra informations for items such as task items, and is a single entity, moving along what you want to know more of, rather than magically appear out of nowhere (that&#8217;s the kind of &#8220;magic&#8221; the human brain doesn&#8217;t like).<br \/>\nA problem with Plasma tooltips was that they tried to animate themselves, that is usually not a good idea on X11, due to its old async architecture.<br \/>\nBut KWin to the rescue! if we want a smooth animation of both the position and the size of the tooltip, the compositor is the place where to do it.<br \/>\nWith its scripting user interface, it was even possible to implement it completely in JavaScript.<br \/>\nYou can see it in this <a href=\"https:\/\/www.youtube.com\/watch?v=-6CVQ7uamqM\">video<\/a> taskbar tooltips animating and resizing\/morphing in a similar way Windows 7 does.<br \/>\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/-6CVQ7uamqM\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>Btw, the animations in he video looks way less smooth than are in reality, due how terrible screencasting is under X11, but for that:<br \/>\n<div style=\"width: 2058px\" class=\"wp-caption alignhcenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/notmart.org\/misc\/Wayland.jpg\" width=\"408\" height=\"230\" alt=\"Wayland will fix it!\" class \/><p class=\"wp-caption-text\">Wayland will fix it!<\/p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An informational tooltip in Plasma is an item that shows extra informations for items such as task items, and is a single entity, moving along what you want to know more of, rather than magically appear out of nowhere (that&#8217;s the kind of &#8220;magic&#8221; the human brain doesn&#8217;t like). A problem with Plasma tooltips was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,16],"tags":[2,154,7,139,153],"class_list":["post-6435","post","type-post","status-publish","format-standard","hentry","category-graphics","category-software","tag-kde","tag-kwin","tag-plasma","tag-plasma5","tag-wayland"],"_links":{"self":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/comments?post=6435"}],"version-history":[{"count":6,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6435\/revisions"}],"predecessor-version":[{"id":6448,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/6435\/revisions\/6448"}],"wp:attachment":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/media?parent=6435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/categories?post=6435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/tags?post=6435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}