{"id":581,"date":"2008-08-04T16:43:59","date_gmt":"2008-08-04T16:43:59","guid":{"rendered":"http:\/\/www.notmart.org\/index.php\/Software\/On_panel_thinghie_again"},"modified":"2008-08-04T16:43:59","modified_gmt":"2008-08-04T16:43:59","slug":"on_panel_thinghie_again","status":"publish","type":"post","link":"https:\/\/notmart.org\/blog\/2008\/08\/on_panel_thinghie_again\/","title":{"rendered":"On panel thinghie again"},"content":{"rendered":"<p>KDE 4.1 is out from not too much but feature addition for 4.2 are in a really fast pace already, by the way 4.2 will be the answer to Life, Universe and everything (ok, bad pun but couldn&#8217;t resist :P)<\/p>\n<p>As for Plasma, the <a href=\"http:\/\/aseigo.blogspot.com\/2008\/08\/41-is-out-and-i-too-am-going-to-akademy.html\">changelog published<\/a> by a certain KDE hacker (welcome back Aaron:D) is already pretty impressive, i wanted to talk about a feature that should really clarify the why of a thinghie that is present in KDE 4.1:<\/p>\n<pre>\n...\nPlasma Desktop Shell\n--------------------\n* Features\n   * Panel\n       * resizes itself when an applet changes its sizehint\n           according to its maximum and minimum size\n...<\/pre>\n<p>KDE 4.1 has the possibility to resize\/edit\/move the panel with a widget that pops up over it, to decide the size you use a thing that resembles the wordprocessor paragraph rules, and there are 3 of them, because you can decide the position, maximum and minimum size. The difference between the maximum and minimum sizes in kde 4.1 is used only when adding\/removing applets.<\/p>\n<p>Since some time (and writing about it only now because i&#8217;m laaazy:)) the new behaviour, that was the intended one since day zero is:<\/p>\n<p>When you move the minimum slider, the panel resizes itself until a size it consider somewhat &#8220;optimal&#8221; to fit all its applets without whitespaces. When an applet wants to grow (or shrink) it notifies the panel, which will resize itself according the chosed maximum and minimum size.<\/p>\n<p>The white slider instead represents the &#8220;origin point&#8221;, so for instance if you have the panel aligned to the left and the white slider moved by 100 pixels you will always be sure that the x coordinate of the panel will be 100 pixels, even if it grows or shrink.<\/p>\n<p>Of course (well, at least i think:)) the default setup will still be a panel with 100% maximum and minimum width, so will look as now, but will be very easy to obtain different behaviours \ud83d\ude42<\/p>\n<p>This is a video that shows the standard panel that is being centered, grows and then shrinks:<\/p>\n<p><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/pYZDra-T89M&#038;hl=en&#038;fs=1\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><embed src=\"http:\/\/www.youtube.com\/v\/pYZDra-T89M&#038;hl=en&#038;fs=1\" type=\"application\/x-shockwave-flash\" allowfullscreen=\"true\" width=\"425\" height=\"344\"><\/embed><\/object><\/p>\n<p><a href=\"http:\/\/www.notmart.org\/files\/panelautoresize.ogv\">Theora version<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>KDE 4.1 is out from not too much but feature addition for 4.2 are in a really fast pace already, by the way 4.2 will be the answer to Life, Universe and everything (ok, bad pun but couldn&#8217;t resist :P) As for Plasma, the changelog published by a certain KDE hacker (welcome back Aaron:D) is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[2,10,21,7],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-software","tag-kde","tag-kde4","tag-linux","tag-plasma"],"_links":{"self":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/581","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=581"}],"version-history":[{"count":0,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"wp:attachment":[{"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notmart.org\/blog\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}