[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Default location of panel
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2008-02-02 15:53:19
Message-ID: 200802021653.24459.ogoffart () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hi !

Now it is possible to configure the location of the panel, and have vertical 
panel.

I was wandering if having a vertical panel by default when we have a wide 
screen would be a good idea (attached patch)

Arguments: when you read or write document, you often need more space 
vertically, and less hirizontaly.

Of course the default size of the panel need to be ajusted also.

["panel_location.diff" (text/x-diff)]

Index: corona.cpp
===================================================================
--- corona.cpp	(revision 769882)
+++ corona.cpp	(working copy)
@@ -323,7 +323,11 @@
     // make a panel at the bottom
     Containment* panel = addContainment("panel");
     panel->setScreen(topLeftScreen);
-    panel->setLocation(Plasma::BottomEdge);
+    QRect g = desktop->screenGeometry(topLeftScreen);
+    if (g.width() * 3 > g.height() * 4)
+        panel->setLocation(Plasma::RightEdge);
+    else
+        panel->setLocation(Plasma::BottomEdge);
 
     // some default applets to get a usable UI
     panel->addApplet("launcher");

["signature.asc" (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic