feat(SQ/StatusTagItem): Extend text properties customization

Binding added for `font`  property to allow more component customization.
This commit is contained in:
Noelia 2023-07-04 13:13:13 +02:00 committed by Noelia
parent 2d21ff6c38
commit 0e730b38e7
1 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ Control {
*/
property bool isReadonly
/*!
\qmlproperty string StatusTagItem::name
\qmlproperty string StatusTagItem::text
This property sets the tag text to display.
*/
property string text
@ -69,6 +69,8 @@ Control {
implicitHeight: 30
horizontalPadding: d.tagMargins
font.pixelSize: 15
font.family: Theme.palette.baseFont.name
background: Rectangle {
color: d.getTagColor(root.isReadonly)
@ -88,7 +90,7 @@ Control {
}
StatusBaseText {
color: Theme.palette.indirectColor1
font.pixelSize: 15
font: root.font
text: root.text
}
StatusIcon {