diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-07 14:52:39 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-07 14:52:39 +0800 |
commit | 49090718b92bc66bb3d7c42cd147a399ae99dcc1 (patch) | |
tree | b2a4cc5408a25fb61d35b828f5b60a245d6a1c5d /CourseDetailClassic.ui.qml | |
parent | 7e987a919a093433936fcfa6b9dca3183aee125f (diff) |
Alias to tabs & change item colours
Diffstat (limited to 'CourseDetailClassic.ui.qml')
-rw-r--r-- | CourseDetailClassic.ui.qml | 16 |
1 files changed, 15 insertions, 1 deletions
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 { |