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

« back to all changes in this revision

Viewing changes to MonthComponentDateDelegate.qml

  • Committer: Kunal Parmar
  • Date: 2014-10-23 14:33:36 UTC
  • Revision ID: pkunal.parmar@gmail.com-20141023143336-8q35zkl31yoet61q
Font size caching

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    property bool isCurrentMonth;
9
9
    property bool isToday
10
10
 
 
11
    property alias fontSize: dateLabel.font.pixelSize
 
12
 
11
13
    Loader {
12
14
        sourceComponent: isToday && isCurrentMonth ? highLightComp : undefined
13
15
        onSourceComponentChanged: {
23
25
        width: parent.width
24
26
        text: date
25
27
        horizontalAlignment: Text.AlignHCenter
26
 
        fontSize: root.dateLabelFontSize
27
28
        color: {
28
29
            if( isCurrentMonth ) {
29
30
                if(isToday) {