From 4c7200581957f889fe745def6b840a0f2c0eb9c8 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Thu, 16 Feb 2023 15:59:10 +0700 Subject: add MostPopularWithTab --- MostPopularWithTab.ui.qml | 82 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 MostPopularWithTab.ui.qml diff --git a/MostPopularWithTab.ui.qml b/MostPopularWithTab.ui.qml new file mode 100644 index 0000000..e9be112 --- /dev/null +++ b/MostPopularWithTab.ui.qml @@ -0,0 +1,82 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +ColumnLayout { + spacing: 8 + FontLoader { + id: roboto + source: doesntEmbed ? "" + : "Roboto/Roboto-Medium.ttf" + } + + Label { + text: qsTr("Most Popular Courses") + color: "#24292d" + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.Wrap + Layout.fillWidth: true + font { + family: doesntEmbed + ? "Roboto" + : roboto.name + pointSize: 44 + } + } + + Label { + text: qsTr("Choose from hundreds of courses from specialist organizations") + color: "#747579" + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.Wrap + Layout.fillWidth: true + font { + family: doesntEmbed + ? "Roboto" + : roboto.name + pointSize: 14 + } + } + TabBar { + background: Rectangle{ + color: "#1a066ac9" + radius: 8 + } + Layout.fillWidth: true + implicitHeight: 58 + Layout.margins: 16 + padding: 16 + TabButton { + text: qsTr("First") + anchors.verticalCenter: parent.verticalCenter + Layout.fillWidth: true + Layout.leftMargin: 16 + background: Rectangle { + radius: 8 + } + } + TabButton { + text: qsTr("Second") + anchors.verticalCenter: parent.verticalCenter + Layout.fillWidth: true + background: Rectangle { + radius: 8 + } + + } + TabButton { + text: qsTr("Third") + anchors.verticalCenter: parent.verticalCenter + Layout.fillWidth: true + background: Rectangle { + radius: 8 + } + contentItem: Text { + color: "#000000" + text: "Third" + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + } + } +} -- cgit v1.2.3