~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to ViewHeader.qml

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2013-09-18 12:37:45 UTC
  • mfrom: (114.2.4 ubuntu-calendar-app)
  • Revision ID: tarmac-20130918123745-da9n919xckd29zjj
DayView and WeekView header transition.

Approved by Olivier Tilloy, Ubuntu Phone Apps Jenkins Bot.

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
Item{
 
5
    id: header
 
6
    width: parent.width
 
7
    height: monthLabel.height
 
8
 
 
9
    property var date;
 
10
 
 
11
    Label{
 
12
        id: monthLabel
 
13
        fontSize: "large"
 
14
        text: Qt.locale().standaloneMonthName(date.getMonth())
 
15
        anchors.leftMargin: units.gu(1)
 
16
        anchors.left: parent.left
 
17
        //color:"white"
 
18
        anchors.verticalCenter: parent.verticalCenter
 
19
    }
 
20
 
 
21
    Label{
 
22
        id: yearLabel
 
23
        fontSize: "medium"
 
24
        text: date.getFullYear()
 
25
        anchors.right: parent.right
 
26
        anchors.rightMargin: units.gu(1)
 
27
        color:"#AEA79F"
 
28
        anchors.verticalCenter: parent.verticalCenter
 
29
    }
 
30
}