diff options
-rw-r--r-- | RecentlyViewedCard.ui.qml | 59 |
1 files changed, 49 insertions, 10 deletions
diff --git a/RecentlyViewedCard.ui.qml b/RecentlyViewedCard.ui.qml index 30e024f..3572dbf 100644 --- a/RecentlyViewedCard.ui.qml +++ b/RecentlyViewedCard.ui.qml @@ -11,13 +11,6 @@ Rectangle { radius: 8 anchors.margins: 24 -/* - DropShadow { - source: recentlyViewedCard - color: Qt.rgba(.0, .0, .0, .30) - anchors.fill: recentlyViewedCard - } -*/ ColumnLayout { id: recentlyCardContent anchors { @@ -43,9 +36,8 @@ Rectangle { Layout.rightMargin: 24 Rectangle { color: "#eee" - implicitHeight: 80 - implicitWidth: 100 - Layout.fillWidth: true + height: 80 + width: 100 radius: 8 } ColumnLayout { @@ -67,9 +59,56 @@ Rectangle { font.pointSize: 14 font.family: "roboto" font.styleName: "Medium" + color: "#0cbc87" + Layout.fillWidth: true + } + Label { + text: qsTr("4.5") + horizontalAlignment: Text.AlignRight + font.pointSize: 14 + font.family: "roboto" + font.styleName: "Medium" color: "#000000" Layout.fillWidth: true } + } + } + } + RowLayout { + Layout.fillWidth: true + Layout.fillHeight: true + spacing: 16 + Layout.leftMargin: 24 + Layout.rightMargin: 24 + Layout.bottomMargin: 24 + Rectangle { + color: "#eee" + height: 80 + width: 100 + radius: 8 + } + ColumnLayout { + Layout.fillWidth: true + Layout.fillHeight: true + Label { + text: qsTr("Course title") + font.pointSize: 14 + font.family: "roboto" + font.styleName: "Medium" + color: "#000000" + Layout.fillWidth: true + } + RowLayout { + Layout.fillWidth: true + Layout.fillHeight: true + Label { + text: qsTr("$") + font.pointSize: 14 + font.family: "roboto" + font.styleName: "Medium" + color: "#0cbc87" + Layout.fillWidth: true + } Label { text: qsTr("4.5") horizontalAlignment: Text.AlignRight |