Changeset View
Changeset View
Standalone View
Standalone View
src/apps/qml/messages/NewDateLabel.qml
Show All 27 Lines | |||||
28 | 28 | | |||
29 | Rectangle { | 29 | Rectangle { | ||
30 | id: newDateRect | 30 | id: newDateRect | ||
31 | property string date | 31 | property string date | ||
32 | 32 | | |||
33 | Layout.alignment: Qt.AlignCenter | 33 | Layout.alignment: Qt.AlignCenter | ||
34 | visible: date !== "" | 34 | visible: date !== "" | ||
35 | 35 | | |||
36 | implicitHeight: date !== "" ? dateLabel.font.pointSize : 0 | 36 | implicitHeight: dateLabel.implicitHeight | ||
37 | 37 | | |||
38 | //TODO fix color | 38 | //TODO fix color | ||
39 | color: RuqolaSingleton.backgroundColor; | 39 | color: RuqolaSingleton.backgroundColor; | ||
40 | QQC2.Label { | 40 | QQC2.Label { | ||
41 | id: dateLabel | 41 | id: dateLabel | ||
42 | text: date | 42 | text: date | ||
43 | font.bold: true | 43 | font.bold: true | ||
44 | font.italic: true | 44 | font.italic: true | ||
45 | color: Kirigami.Theme.negativeTextColor | 45 | color: Kirigami.Theme.negativeTextColor | ||
46 | anchors.centerIn: parent | 46 | anchors.centerIn: parent | ||
47 | } | 47 | } | ||
48 | } | 48 | } |