summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-12-29 11:00:01 +0100
committerPapoteur <papoteur@mageia.org>2018-12-29 11:00:01 +0100
commit32ccba32b7582f73c5c31ceaa74799c26c31387b (patch)
treee894273024adbfbb356b0b9c8ba47a8972a9f0b9 /qml
parent2c178b667cf59e0fcaf20117aa98ad1124bb1bc6 (diff)
downloadmageiawelcome-32ccba32b7582f73c5c31ceaa74799c26c31387b.tar
mageiawelcome-32ccba32b7582f73c5c31ceaa74799c26c31387b.tar.gz
mageiawelcome-32ccba32b7582f73c5c31ceaa74799c26c31387b.tar.bz2
mageiawelcome-32ccba32b7582f73c5c31ceaa74799c26c31387b.tar.xz
mageiawelcome-32ccba32b7582f73c5c31ceaa74799c26c31387b.zip
Applications: Adaptative height in category list to font size
Diffstat (limited to 'qml')
-rw-r--r--qml/mw-ui.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index 13bc36f..27ec398 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -487,7 +487,7 @@ Rectangle {
id: catHighlight
Rectangle {
width: 190
- height: 30
+ height: Qt.application.font.pixelSize + 16
anchors.horizontalCenter: parent.horizontalCenter
color: "#2397D4"
y: categoriesList.currentItem.y;
@@ -510,14 +510,15 @@ Rectangle {
{'name':qsTr("Graphics"),'group': "graphics"},
{'name':qsTr("System"),'group': "system"},
{'name':qsTr("Programming"),'group': "programming"}]
- height: 30 * 9
+ height: (Qt.application.font.pixelSize + 16) * 9
delegate: Rectangle{
width: parent.width
- height: 30
+ height: Qt.application.font.pixelSize + 16
color:"#202397D4"
Label {id: catLabel;
+ anchors.horizontalCenter: parent.horizontalCenter
text: modelData.name ;
- padding: 5
+ padding: 7
color: categoriesList.currentIndex === index ? "white" : "black"}
MouseArea {
anchors.centerIn: parent