Commit f74ee5fb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Remove some hardcoded sizes

parent a3085090
......@@ -17,7 +17,7 @@ Kirigami.OverlaySheet
{
visible: addonsView.containsAddons
enabled: !addonsView.isInstalling
spacing: 5
spacing: Kirigami.Units.largeSpacing
Kirigami.Heading {
level: 3
......@@ -66,7 +66,7 @@ Kirigami.OverlaySheet
RowLayout {
readonly property bool active: addonsModel.hasChanges && !addonsView.isInstalling
spacing: 5
spacing: Kirigami.Units.largeSpacing
Button {
icon.name: "dialog-ok"
......@@ -84,7 +84,7 @@ Kirigami.OverlaySheet
}
Item {
Layout.fillWidth: true
height: 5
height: Kirigami.Units.largeSpacing
}
Button {
Layout.alignment: Qt.AlignRight
......
......@@ -275,7 +275,7 @@ DiscoverPage {
Item {
height: addonsButton.height
width: 5
width: 1
}
// Details/metadata
......
......@@ -131,7 +131,7 @@ Flickable {
DropShadow {
source: thumbnail
anchors.fill: thumbnail
verticalOffset: 3
verticalOffset: Kirigami.Units.largeSpacing
horizontalOffset: 0
radius: 12.0
samples: 25
......
import QtQuick 2.1
PathView {
id: viewItem
interactive: false
pathItemCount: count
cacheItemCount: count
highlightMoveDuration: 500
readonly property real oriX: viewItem.width/2
readonly property real oriY: viewItem.height/2
property alias slideDuration: timer.interval
path: Path {
startX: oriX; startY: oriY
PathLine { x: oriX-500; y: oriY }
PathPercent { value: 0.3 }
PathLine { x: oriX-800; y: oriY-1900 }
PathLine { x: oriX+800; y: oriY-1900 }
PathLine { x: oriX+500; y: oriY }
PathPercent { value: 0.7 }
PathLine { x: oriX; y: oriY }
PathPercent { value: 1 }
}
function next() { incrementCurrentIndex() }
function previous() { decrementCurrentIndex() }
onCurrentIndexChanged: timer.restart()
Timer {
id: timer
interval: 5000; running: viewItem.visible
onTriggered: viewItem.next()
}
}
......@@ -27,7 +27,7 @@ Item
{
property alias text: theLabel.text
property real progress: 1.
readonly property real margin: 5
readonly property real margin: Kirigami.Units.smallSpacing * 1.5
implicitWidth: theLabel.implicitWidth + margin*2
implicitHeight: theLabel.implicitHeight + margin*2
width: implicitWidth
......
......@@ -144,8 +144,8 @@ DiscoverPage
visible: page.footerLabel !== ""
source: "update-none"
opacity: 0.3
width: 200
height: 200
width: Kirigami.Units.gridUnit * 12
height: width
}
Item {
visible: page.footerLabel === ""
......
......@@ -15,7 +15,6 @@
<file>qml/BrowsingPage.qml</file>
<file>qml/InstalledPage.qml</file>
<file>qml/SearchPage.qml</file>
<file>qml/Information.qml</file>
<file>qml/SourcesPage.qml</file>
<file>qml/ReviewDelegate.qml</file>
<file>qml/AddSourceDialog.qml</file>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment