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

« back to all changes in this revision

Viewing changes to MonthComponent.qml

  • Committer: Kunal Parmar
  • Date: 2014-11-29 09:40:53 UTC
  • mto: This revision was merged to the branch mainline in revision 562.
  • Revision ID: pkunal.parmar@gmail.com-20141129094053-36irokudmi5sarl6
Year and Month View redesign

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
 
125
125
        spacing: units.gu(1.5)
126
126
 
127
 
        ViewHeader{
128
 
            id: monthHeader
129
 
            month: intern.curMonth
130
 
            year: intern.curMonthYear
 
127
        Loader {
 
128
            width: parent.width
 
129
            height: isYearView ? FontUtils.sizeToPixels(root.monthLabelFontSize) : 0;
 
130
            sourceComponent: isYearView ? headerComp : undefined
 
131
            Component{
 
132
                id: headerComp
 
133
                ViewHeader{
 
134
                    id: monthHeader
 
135
                    anchors.fill: parent
 
136
                    month: intern.curMonth
 
137
                    year: intern.curMonthYear
131
138
 
132
 
            monthLabelFontSize: root.monthLabelFontSize
133
 
            yearLabelFontSize: root.yearLabelFontSize
134
 
            visible: isYearView === true
 
139
                    monthLabelFontSize: root.monthLabelFontSize
 
140
                    yearLabelFontSize: root.yearLabelFontSize
 
141
                }
 
142
            }
135
143
        }
136
144
 
137
145
        Item {
138
146
            width: parent.width
139
147
            height: dayLabelRow.height + units.gu(1)
140
148
 
141
 
            DayHeaderBackground{}
142
 
 
143
149
            Row{
144
150
                id: dayLabelRow
145
151
 
229
235
            text: isYearView ? day.charAt(0) : day;
230
236
            horizontalAlignment: Text.AlignHCenter
231
237
            font.pixelSize: intern.dayFontSize
232
 
            color: "white"
233
 
        }
234
 
    }
235
 
 
236
 
    Component{
237
 
        id: highLightComp
238
 
        UbuntuShape{
239
 
            color: "#DD4814"
 
238
            font.bold: true
 
239
            color: "black"
240
240
        }
241
241
    }
242
242
}