From 3df5a34a0df5dc38acda6c400655d7c962b6abae Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Fri, 3 Mar 2023 21:03:47 +0700 Subject: add Badge.ui.qml --- Badge.ui.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Badge.ui.qml 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 + } + } +} -- cgit v1.2.3