fix(StatusFlowSelector): minor adjustments to the design
This commit is contained in:
parent
8cbe2977c2
commit
2dc9c950d9
|
@ -64,6 +64,18 @@ StatusGroupBox {
|
||||||
*/
|
*/
|
||||||
property url placeholderImageSource
|
property url placeholderImageSource
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\qmlproperty int StatusFlowSelector::flowSpacing
|
||||||
|
This property specifies spacing between items in the selector.
|
||||||
|
*/
|
||||||
|
property alias flowSpacing: flow.spacing
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\qmlproperty int StatusFlowSelector::placeholderItemHeight
|
||||||
|
This property specifies the height of the placeholder item.
|
||||||
|
*/
|
||||||
|
property int placeholderItemHeight: 32
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty StatusListItemTag StatusFlowSelector::placeholder
|
\qmlproperty StatusListItemTag StatusFlowSelector::placeholder
|
||||||
This property holds an alias to the placeholder item.
|
This property holds an alias to the placeholder item.
|
||||||
|
@ -76,12 +88,6 @@ StatusGroupBox {
|
||||||
*/
|
*/
|
||||||
readonly property alias addButton: addItemButton
|
readonly property alias addButton: addItemButton
|
||||||
|
|
||||||
/*!
|
|
||||||
\qmlproperty int StatusFlowSelector::flowSpacing
|
|
||||||
This property specifies spacing between items in the selector.
|
|
||||||
*/
|
|
||||||
property alias flowSpacing: flow.spacing
|
|
||||||
|
|
||||||
implicitWidth: 560
|
implicitWidth: 560
|
||||||
|
|
||||||
Flow {
|
Flow {
|
||||||
|
@ -93,6 +99,9 @@ StatusGroupBox {
|
||||||
StatusListItemTag {
|
StatusListItemTag {
|
||||||
id: placeholderListItemTag
|
id: placeholderListItemTag
|
||||||
|
|
||||||
|
leftPadding: 12
|
||||||
|
rightPadding: 12
|
||||||
|
|
||||||
bgColor: Theme.palette.baseColor2
|
bgColor: Theme.palette.baseColor2
|
||||||
title: root.placeholderText
|
title: root.placeholderText
|
||||||
asset.name: root.placeholderImageSource
|
asset.name: root.placeholderImageSource
|
||||||
|
@ -100,6 +109,8 @@ StatusGroupBox {
|
||||||
closeButtonVisible: false
|
closeButtonVisible: false
|
||||||
titleText.color: Theme.palette.baseColor1
|
titleText.color: Theme.palette.baseColor1
|
||||||
titleText.font.pixelSize: 15
|
titleText.font.pixelSize: 15
|
||||||
|
|
||||||
|
height: root.placeholderItemHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
onPositioningComplete: {
|
onPositioningComplete: {
|
||||||
|
@ -114,7 +125,7 @@ StatusGroupBox {
|
||||||
StatusRoundButton {
|
StatusRoundButton {
|
||||||
id: addItemButton
|
id: addItemButton
|
||||||
|
|
||||||
implicitHeight: 32
|
implicitHeight: root.placeholderItemHeight
|
||||||
implicitWidth: implicitHeight
|
implicitWidth: implicitHeight
|
||||||
height: width
|
height: width
|
||||||
type: StatusRoundButton.Type.Secondary
|
type: StatusRoundButton.Type.Secondary
|
||||||
|
|
Loading…
Reference in New Issue