Code review comment for lp:~rpadovani/reminders-app/new-notes-design

Revision history for this message
Michael Zanetti (mzanetti) wrote :

77 + anchors { top: colorRectangle.bottom; bottom: parent.bottom }

Theres still anchors inside a columnLayout :)

===

I would try it like this (pseudo-code - might not work as is)

ColumnLayout {
   anchors { fill: parent; leftMargin: units.gu(1.5); rightMargin: units.gu(1.5) }

    Rectangle {
        Layout.fillWidth: true
        height: units.gu(3)
        color: colorForNotebook(note.notebookGui)
    }
    Label {
        Layout.fillWidth: true
        text: note.title
    }
    Label {
        Layout.fillWidth: true
        Layout.fillHeight: true
        text: note.plaintextContent
        fontSize: "small"
        maximumLineCount: 2
    }
    Label {
        Layout.fillWidth: true
        text: note.date
        fontSize: "small"
        horizontalAlignment: Text.AlignRight
    }
}

and that's it.

for the arrow, use "Base" instead of "Empty" and set "progression: true"

« Back to merge proposal