diff options
Diffstat (limited to 'launcher/qml')
-rw-r--r-- | launcher/qml/IconItem.qml | 8 | ||||
-rw-r--r-- | launcher/qml/Launcher.qml | 15 |
2 files changed, 11 insertions, 12 deletions
diff --git a/launcher/qml/IconItem.qml b/launcher/qml/IconItem.qml index 4faa3ea..59c2180 100644 --- a/launcher/qml/IconItem.qml +++ b/launcher/qml/IconItem.qml @@ -22,7 +22,7 @@ import "ChangeItemPosition.js" as Cip Item { id: main width: 300 - height: 485 + height: 300 property string icon: model.icon property int pid: -1 property bool isBlank: false @@ -88,11 +88,7 @@ Item { Image { id: item - anchors.top: parent.top - anchors.topMargin: 230 - anchors.horizontalCenter: parent.horizontalCenter - width: 300 - height: 300 + anchors.fill: parent source: './images/%1_active.png'.arg(model.icon) property string initial: model.name.substring(0,1).toUpperCase() property bool hasIcon: model.icon !== 'blank' diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index 31a9848..522e1ce 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -23,6 +23,8 @@ import "ChangeItemPosition.js" as Cip ApplicationWindow { id: root + width: 1920 + height: 720 property int pid: -1 property int firstPox: -1 @@ -50,7 +52,8 @@ ApplicationWindow { property int currentState: 1 width: 300 - height: 590 + height: 300 + anchors.topMargin: 230 smooth: true @@ -67,8 +70,8 @@ ApplicationWindow { Rotation { id: rotate angle: 0 - origin.y: 243 - origin.x: 160 + origin.y: 150 + origin.x: 150 axis { x: 0; y: 1; z: 0 } Behavior on angle { NumberAnimation { easing.overshoot: 1; easing.type: Easing.OutBack; duration: 600 } @@ -87,8 +90,8 @@ ApplicationWindow { }, Scale { id: scale - origin.x: 160 - origin.y: 243 + origin.x: 150 + origin.y: 150 xScale: 1 yScale: 1 Behavior on xScale { @@ -418,7 +421,7 @@ ApplicationWindow { PropertyChanges { target: trans x: 0 - y: -50 + y: 0 } PropertyChanges { target: rect1 |