From f265b7fdb808e16c58cca1e3027387be4279a63d Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Fri, 27 Sep 2019 17:36:34 +0700 Subject: adding `attachmentItemLayout` --- components/icons/folder-24px.svg | 1 + features/TaskDetailForm.ui.qml | 30 ++++++++++++++++++++++++++++++ material-design-icons.qrc | 1 + 3 files changed, 32 insertions(+) create mode 100644 components/icons/folder-24px.svg diff --git a/components/icons/folder-24px.svg b/components/icons/folder-24px.svg new file mode 100644 index 0000000..970e888 --- /dev/null +++ b/components/icons/folder-24px.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/features/TaskDetailForm.ui.qml b/features/TaskDetailForm.ui.qml index 20e11c9..3c81052 100644 --- a/features/TaskDetailForm.ui.qml +++ b/features/TaskDetailForm.ui.qml @@ -124,6 +124,36 @@ Page { Layout.fillWidth: true } } + RowLayout { + id: attachmentItemLayout + height: attachmentItem.height + 16 + anchors.leftMargin: 0 + anchors.top: attachmentLayout.bottom + anchors.topMargin: 0 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + ItemDelegate { + id: attachmentItem + height: 56 + text: qsTr("Attached-file-name.file-format") + rightPadding: 16 + leftPadding: 161 + bottomPadding: 16 + topPadding: 16 + highlighted: false + font.weight: Font.Medium + font.pixelSize: 14 + font.family: "Work Sans" + Layout.rightMargin: 16 + Layout.leftMargin: 66 + Layout.fillWidth: true + background: Rectangle { + color: "#D6C3F8" + radius: 8 + } + } + } } /*##^## diff --git a/material-design-icons.qrc b/material-design-icons.qrc index eb90650..06ebc8c 100644 --- a/material-design-icons.qrc +++ b/material-design-icons.qrc @@ -14,5 +14,6 @@ components/icons/user-24px.svg components/icons/notes-24px.svg components/icons/more-vert-24px.svg + components/icons/folder-24px.svg -- cgit v1.2.3