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

List:       kde-commits
Subject:    [kanagram] src/harmattan: Center the buttons into the middle of the main page right up to the kde ed
From:       Laszlo Papp <ext-laszlo.papp () nokia ! com>
Date:       2012-02-18 14:43:57
Message-ID: 20120218144357.95BBAA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit c03529c14689ea2b605c9aa2683c38a7846a0245 by Laszlo Papp.
Committed on 18/02/2012 at 15:41.
Pushed by lpapp into branch 'master'.

Center the buttons into the middle of the main page right up to the kde edu=
 logo

M  +2    -12   src/harmattan/MainPage.qml

http://commits.kde.org/kanagram/c03529c14689ea2b605c9aa2683c38a7846a0245

diff --git a/src/harmattan/MainPage.qml b/src/harmattan/MainPage.qml
index 2e727f3..47c2e5f 100644
--- a/src/harmattan/MainPage.qml
+++ b/src/harmattan/MainPage.qml
@@ -26,9 +26,7 @@ Page {
         id: mainPageColumn;
 =

         anchors {
-            fill: parent;
-            horizontalCenter: parent.horizontalCenter;
-            verticalCenter: parent.verticalCenter;
+            centerIn: parent;
         }
 =

         spacing: 20;
@@ -36,10 +34,6 @@ Page {
         Button {
             id: playResumeGameButton;
 =

-            anchors {
-                horizontalCenter: parent.horizontalCenter;
-            }
-
             text: qsTr("Play Game");
             font.pixelSize: 48;
 =

@@ -55,10 +49,6 @@ Page {
         Button {
             id: settingsButton;
 =

-            anchors {
-                horizontalCenter: parent.horizontalCenter;
-            }
-
             text: qsTr("Settings");
             font.pixelSize: 48;
 =

@@ -98,7 +88,7 @@ Page {
             right: parent.right;
             bottom: parent.bottom;
             rightMargin: 10;
-            bottomMargin: 40;
+            bottomMargin: 30;
         }
 =

         fillMode: Image.PreserveAspectFit;
[prev in list] [next in list] [prev in thread] [next in thread] 

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