From 49090718b92bc66bb3d7c42cd147a399ae99dcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 7 Mar 2023 14:52:39 +0800 Subject: Alias to tabs & change item colours --- CourseDetailClassic.ui.qml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'CourseDetailClassic.ui.qml') diff --git a/CourseDetailClassic.ui.qml b/CourseDetailClassic.ui.qml index 265cf1c..2dbe98b 100644 --- a/CourseDetailClassic.ui.qml +++ b/CourseDetailClassic.ui.qml @@ -7,6 +7,7 @@ Flickable { property alias introBadge: introBadge property alias introTitleHeader: introTitleHeader property alias introTitleParagraph: introTitleParagraph + property alias tabs: tabs property alias courseDescription: courseDescription property alias detailImage: image property alias detailPrice: price @@ -167,7 +168,20 @@ Flickable { cellHeight: 46 implicitHeight: Math.ceil(count / Math.floor(count / (cellWidth * count / width))) * cellHeight model: ["Overview", "Curriculum", "Instructor", "Reviews", "FAQs", "Comment"] - delegate: TabItem {} + delegate: TabItem { + contentItem: Text { + text: modelData + color: "#066ac9" + font { + family: doesntEmbed ? "Roboto" : regular.name + pointSize: 15 + } + } + background: Rectangle { + color: index == currentIndex ? "#1a0fffff" : "transparent" + radius: 5.2 + } + } } ColumnLayout { -- cgit v1.2.3