some more styling fixes
This commit is contained in:
parent
6001eccc1d
commit
ab169f404e
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue