diff options
| -rw-r--r-- | Badge.ui.qml | 25 | 
1 files changed, 25 insertions, 0 deletions
diff --git a/Badge.ui.qml b/Badge.ui.qml new file mode 100644 index 0000000..78359d6 --- /dev/null +++ b/Badge.ui.qml @@ -0,0 +1,25 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +Item { +	width: badgeContent.width +	height: badgeContent.height +	Label{ +		id: discount +		color: "#ffffff" +		text: "60% off" +		font.pointSize: 8 +        rightPadding: 8 +        leftPadding: 8 +        bottomPadding: 4 +        topPadding: 4 +		font.family: "Roboto" +		background: Rectangle { +			width: discount.width +			height: discount.height +			color: "#fd7e14" +			radius: 4 +		} +	} +}  |