diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-09-30 16:49:43 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-09-30 16:49:43 (GMT) |
| commit | be3dd2e81462846b1affc523a623bad4f24fc5dc (patch) | |
| tree | 6f076784038921de5bcc8c13abb0211d8d87bf2d | |
| parent | fd7343ef5dcc0671217f48766a6e7b9f158c6880 (diff) | |
Polish the main window look
| -rw-r--r-- | discover/qml/CategoryDisplay.qml | 3 | ||||
| -rw-r--r-- | discover/qml/FeaturedBanner.qml | 13 | ||||
| -rw-r--r-- | discover/qml/Information.qml | 7 |
3 files changed, 14 insertions, 9 deletions
diff --git a/discover/qml/CategoryDisplay.qml b/discover/qml/CategoryDisplay.qml index d158ae9..77ca95a 100644 --- a/discover/qml/CategoryDisplay.qml +++ b/discover/qml/CategoryDisplay.qml @@ -29,6 +29,8 @@ RowLayout property alias category: categoryModel.displayedCategory readonly property bool extended: !app.isCompact && grid.count>5 + spacing: 7 + ApplicationsTop { id: top Layout.fillHeight: true @@ -70,6 +72,7 @@ RowLayout top: parent.top topMargin: top.titleHeight-2 bottom: top.bottom + bottomMargin: -1 } Layout.preferredWidth: page.width/2 hoverEnabled: false diff --git a/discover/qml/FeaturedBanner.qml b/discover/qml/FeaturedBanner.qml index e086311..eeb3b45 100644 --- a/discover/qml/FeaturedBanner.qml +++ b/discover/qml/FeaturedBanner.qml @@ -31,9 +31,10 @@ Information { delegate: MouseArea { property QtObject modelData: model enabled: modelData.package!="" - width: 400 - height: 250 - + readonly property real size: PathView.isCurrentItem ? 1 : 0.7 + width: 400 * size + height: 250 * size + onClicked: { if(modelData.packageName!=null) Navigation.openApplication(ResourcesModel.resourceByPackageName(modelData.packageName)) @@ -41,6 +42,8 @@ Information { Qt.openUrlExternally(modelData.url) } + Behavior on width { NumberAnimation { duration: 250 } } + Behavior on height { NumberAnimation { duration: 250 } } z: PathView.isCurrentItem && !PathView.view.moving ? 1 : -1 id: itemDelegate @@ -77,8 +80,8 @@ Information { } QIconItem { - height: parent.height - width: parent.height + Layout.fillHeight: true + Layout.fillWidth: true icon: titleBar.modelData ? titleBar.modelData.icon : "kde" } diff --git a/discover/qml/Information.qml b/discover/qml/Information.qml index b5cae55..f478217 100644 --- a/discover/qml/Information.qml +++ b/discover/qml/Information.qml @@ -12,10 +12,9 @@ PathView { path: Path { startX: oriX; startY: oriY - PathLine { x: oriX-800; y: oriY-300 } - PathLine { x: oriX-800; y: oriY-300 } - PathLine { x: oriX+800; y: oriY-600 } - PathLine { x: oriX+800; y: oriY-300 } + PathLine { x: oriX-800; y: oriY } + PathLine { x: oriX+800; y: oriY-1900 } + PathLine { x: oriX+800; y: oriY } PathLine { x: oriX; y: oriY } } |
