~pkunal-parmar/ubuntu-calendar-app/RecurranceField

« back to all changes in this revision

Viewing changes to HeaderDateComponent.qml

  • Committer: Kunal Parmar
  • Date: 2013-09-16 14:04:37 UTC
  • mto: This revision was merged to the branch mainline in revision 119.
  • Revision ID: pkunal.parmar@gmail.com-20130916140437-xdsn0ona0xadvc8f
added missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import Ubuntu.Components 0.1
 
3
 
 
4
Column{
 
5
    id: root
 
6
 
 
7
    property var date;
 
8
 
 
9
    property alias dateColor: dateLabel.color
 
10
    property alias dayColor: dayLabel.color
 
11
 
 
12
    property int dayFormat: Locale.ShortFormat;
 
13
 
 
14
    anchors.verticalCenter: parent.verticalCenter
 
15
 
 
16
    width: parent.width
 
17
    spacing: units.gu(0.5)
 
18
 
 
19
    Label{
 
20
        id: dayLabel
 
21
        property var day: Qt.locale().standaloneDayName(date.getDay(), dayFormat)
 
22
        text: day.toUpperCase();
 
23
        fontSize: "medium"
 
24
        horizontalAlignment: Text.AlignHCenter
 
25
        color: "#AEA79F"
 
26
        width: parent.width
 
27
    }
 
28
 
 
29
    Label{
 
30
        id: dateLabel
 
31
        text: date.getDate();
 
32
        fontSize: "large"
 
33
        horizontalAlignment: Text.AlignHCenter
 
34
        width: parent.width
 
35
    }
 
36
}