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

List:       kde-maemo
Subject:    Re: Kontact Touch on larger screens, flaps wider hack
From:       Bernhard Reiter <bernhard () intevation ! de>
Date:       2011-08-23 7:40:42
Message-ID: 201108230940.50843.bernhard () intevation ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Marco, Nuno,

Am Freitag, 6. Mai 2011 17:43:39 schrieb Marco Martin:
> On Friday 06 May 2011, Nuno Pinheiro wrote:
> > > Cool, which means we could make this change to the MeeGo packages
> > > as a patch. (Until somebody shows me how to make this depending on the
> > > platform or the physical screensize.)
> >
> > simpler solution ..... make the hit area larger than the actual visual
> > element, im not familiar with the actual implementation but should be
> > rather trivial to set that in the respective mouse area...
>
> it's just
> anchors.margins = -whatever
> in the mousearea
>
> however must not be exagerated to not make the user click on what he
> doesn't expect ;)

thanks for your hints. I did not get around trying them, as I am not very 
familiar with QML and did not find the mousearea, so I would need to browse 
the documentation. 

As long as I do not find a better solution, I am using the following updated 
patch on my ideapad. Should be useful for all situation where the touch 
monitor has a frame and you cannot slide in easily from the left.

I apply it as administrator like:
  patch -i ~bernhard/hacking/kontact-touch-flaps-20110822.patch  -d / -p0

Bernhard

-- 
Managing Director + Owner: www.Intevation.net <- A Free Software Company
Kolabsys.com: Board Member          FSFE.org: Founding GA Member
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

["kontact-touch-flaps-20110822.patch" (text/x-diff)]

--- /usr/lib/kde4/imports/org/kde/SlideoutPanel.qml.org	2011-05-04 14:04:59.997000020 +0200
+++ /usr/lib/kde4/imports/org/kde/SlideoutPanel.qml	2011-05-04 14:08:37.728000020 +0200
@@ -54 +54 @@
-  property int collapsedWidth : 36
+  property int collapsedWidth : 46

An example adjustment for the folder list and the composer editor slightly to
the right to compensate a bit for the wider flaps. Only an ugly hack as it
shifts also the decorations:
--- /usr/share/kde4/apps/kmail-mobile/kmail-composer.qml.org	2011-05-04 14:26:58.301000041 +0200
+++ /usr/share/kde4/apps/kmail-mobile/kmail-composer.qml	2011-05-04 14:28:28.295000041 +0200
@@ -28,6 +28,7 @@
     id: flick
     anchors.fill: parent
     contentHeight: editorView.contentHeight;
+    anchors.leftMargin: 15
 
     content.children: [
       EditorView {
--- /usr/share/kde4/apps/kmail-mobile/kmail-mobile.qml.org	2011-08-22 12:17:25.868169514 +0200
+++ /usr/share/kde4/apps/kmail-mobile/kmail-mobile.qml	2011-08-22 12:17:56.374169331 +0200
@@ -88,7 +88,7 @@
     id: messageView
     visible : guiStateManager.inViewSingleItemState
     anchors.left: parent.left
-    anchors.leftMargin: 30
+    anchors.leftMargin: 45
     anchors.top: parent.top
     anchors.topMargin: 35
     width: parent.width - 30
@@ -157,6 +157,7 @@
     anchors.bottom: parent.bottom
     anchors.left: parent.left
     anchors.right : parent.right
+    anchors.leftMargin: 15
 
     QML.Image {
       id: backgroundImage
@@ -170,7 +171,7 @@
     Akonadi.AkonadiBreadcrumbNavigationView {
       id : collectionView
       anchors.top: parent.top
-      width: 1/3 * parent.width
+      width: 1/3 * parent.width - 15
       showUnread : true
       anchors.bottom : selectButton.top
       //height : parent.height - ( collectionView.hasSelection ? 0 : selectButton.height)

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

_______________________________________________
Kde-mobile mailing list
Kde-mobile@kde.org
https://mail.kde.org/mailman/listinfo/kde-mobile


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

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