summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qml/mw-ui.qml52
1 files changed, 26 insertions, 26 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index ba2eeca..edec5ac 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -573,6 +573,7 @@ Rectangle {
}
}
delegate: Row {
+ spacing: 10
Image {
source: icon
width: 32
@@ -582,46 +583,24 @@ Rectangle {
//}
Column{
Label {
- leftPadding:5
text: title
font.weight: Font.DemiBold
color: "white"
}
Label {
- leftPadding:5
text: description
font.italic: true
font.pixelSize: Qt.application.font.pixelSize * .9
- width: view.width - (200 + 32 +30 + 100)
+ width: view.width - (200 + 32 +30 + Qt.application.font.pixelSize * 4 * 2)
wrapMode: Text.WordWrap
color: "white"
}
}
- Column{
- Loader {
- Component {
- id: repotag
- Rectangle {
- color: "#FF4C4C"
- radius: 3
- width: 60; height: 20
- Label {
- anchors.centerIn: parent
- text: repo
- font.pixelSize: Qt.application.font.pixelSize * .8
- color: "white"
- }
- }
- }
- Component { id: dumm; Label {text: " "}}
- sourceComponent: repo == "" ? dumm : repotag
- }
-
Loader {
Component { id: button;
Button {
- width: view.width * .06; height: 20
+ width: Qt.application.font.pixelSize * 4; height: Qt.application.font.pixelSize * 1.3
objectName: "launch"
onClicked: {
launch.command(["gurpmi",name,])}
@@ -637,7 +616,7 @@ Rectangle {
}
Component { id: launcher;
Button {
- width: view.width * .06; height: 20
+ width: Qt.application.font.pixelSize * 4; height: Qt.application.font.pixelSize * 1.3
objectName: "launch"
onClicked: {
launch.command([command,])}
@@ -651,11 +630,32 @@ Rectangle {
}
}
}
- Component { id: dummy;Label {text: " ";
+ Component { id: dummy;Label {text: "Installed"
+ font.pixelSize: Qt.application.font.pixelSize * .8
+ width: Qt.application.font.pixelSize * 4
+ color: "white"
}
}
sourceComponent: (installable === "True") ? button : (command === "" ? dummy : launcher)
}
+
+ Loader {
+ Component {
+ id: repotag
+ Rectangle {
+ color: "#FF4C4C"
+ radius: 3
+ width: Qt.application.font.pixelSize * 3; height: Qt.application.font.pixelSize * 1.3
+ Label {
+ anchors.centerIn: parent
+ text: repo
+ font.pixelSize: Qt.application.font.pixelSize * .8
+ color: "white"
+ }
+ }
+ }
+ Component { id: dumm; Label {text: " "}}
+ sourceComponent: repo == "" ? dumm : repotag
}
}