From ab169f404eff39da755c8d26bc6fb83c249146d2 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 15 Oct 2020 14:21:34 +0200 Subject: [PATCH] some more styling fixes --- OmobiDisplayApp/ressources/qml/Chip.qml | 3 ++- OmobiDisplayApp/ressources/qml/DisplayTextDelegate.qml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OmobiDisplayApp/ressources/qml/Chip.qml b/OmobiDisplayApp/ressources/qml/Chip.qml index cff4dc3..32ce03b 100644 --- a/OmobiDisplayApp/ressources/qml/Chip.qml +++ b/OmobiDisplayApp/ressources/qml/Chip.qml @@ -59,13 +59,14 @@ Item { id: contentText anchors.centerIn: background - width: background.width * 0.5 + width: background.width * 0.7 height: background.height * 0.7 font.pixelSize: height fontSizeMode: Text.Fit verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter + minimumPixelSize: 1 color: control.isDarkColor ? "white":"black" text: control.text diff --git a/OmobiDisplayApp/ressources/qml/DisplayTextDelegate.qml b/OmobiDisplayApp/ressources/qml/DisplayTextDelegate.qml index eed5feb..25df49e 100644 --- a/OmobiDisplayApp/ressources/qml/DisplayTextDelegate.qml +++ b/OmobiDisplayApp/ressources/qml/DisplayTextDelegate.qml @@ -43,7 +43,7 @@ ItemDelegate { } Chip { - Layout.fillHeight: true + Layout.preferredHeight: control.height * 0.6 Layout.preferredWidth: model.scroll ? control.width * 0.15 : 0 visible: model.scroll @@ -64,7 +64,7 @@ ItemDelegate { } Chip { - Layout.fillHeight: true + Layout.preferredHeight: control.height * 0.6 Layout.preferredWidth: height opacity: model.active ? 1:0.5 @@ -77,7 +77,7 @@ ItemDelegate { } Chip { - Layout.fillHeight: true + Layout.preferredHeight: control.height * 0.6 Layout.preferredWidth: control.width * 0.15 color: model.active ? "#4CAF50" : "#F44336"