some more styling fixes

This commit is contained in:
Dorian Zedler 2020-10-15 14:21:34 +02:00
parent 6001eccc1d
commit ab169f404e
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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"