diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-03-03 21:03:47 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-03-03 21:03:47 +0700 |
commit | 3df5a34a0df5dc38acda6c400655d7c962b6abae (patch) | |
tree | 65c7d09e26b24c87ab117ca546d3aee639e945b3 /Badge.ui.qml | |
parent | 5510aea87db81510a8ff44683fb684f81198e7a9 (diff) |
add Badge.ui.qml
Diffstat (limited to 'Badge.ui.qml')
-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 + } + } +} |