feat(SQ/StatusTagItem): Extend text properties customization
Binding added for `font` property to allow more component customization.
This commit is contained in:
parent
2d21ff6c38
commit
0e730b38e7
|
@ -36,7 +36,7 @@ Control {
|
||||||
*/
|
*/
|
||||||
property bool isReadonly
|
property bool isReadonly
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty string StatusTagItem::name
|
\qmlproperty string StatusTagItem::text
|
||||||
This property sets the tag text to display.
|
This property sets the tag text to display.
|
||||||
*/
|
*/
|
||||||
property string text
|
property string text
|
||||||
|
@ -69,6 +69,8 @@ Control {
|
||||||
|
|
||||||
implicitHeight: 30
|
implicitHeight: 30
|
||||||
horizontalPadding: d.tagMargins
|
horizontalPadding: d.tagMargins
|
||||||
|
font.pixelSize: 15
|
||||||
|
font.family: Theme.palette.baseFont.name
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: d.getTagColor(root.isReadonly)
|
color: d.getTagColor(root.isReadonly)
|
||||||
|
@ -88,7 +90,7 @@ Control {
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
color: Theme.palette.indirectColor1
|
color: Theme.palette.indirectColor1
|
||||||
font.pixelSize: 15
|
font: root.font
|
||||||
text: root.text
|
text: root.text
|
||||||
}
|
}
|
||||||
StatusIcon {
|
StatusIcon {
|
||||||
|
|
Loading…
Reference in New Issue