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

« back to all changes in this revision

Viewing changes to TimeLineHeaderComponent.qml

  • Committer: Kunal Parmar
  • Date: 2014-09-28 11:49:35 UTC
  • mfrom: (478 ubuntu-calendar-app)
  • mto: This revision was merged to the branch mainline in revision 480.
  • Revision ID: pkunal.parmar@gmail.com-20140928114935-scs25xpajdxn358p
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
 
import QtQuick 2.0
19
 
import Ubuntu.Components 0.1
20
18
 
 
19
import QtQuick 2.3
 
20
import Ubuntu.Components 1.1
21
21
import "dateExt.js" as DateExt
22
22
import "ViewType.js" as ViewType
23
23
 
24
 
 
25
24
Row{
26
25
    id: header
27
26
 
47
46
                }
48
47
            }
49
48
 
50
 
            dateColor: {
 
49
            dayColor: {
51
50
                if( type == ViewType.ViewTypeWeek && date.isSameDay(DateExt.today())){
52
 
                    "#5D5D5D"
 
51
                    UbuntuColors.orange
53
52
                } else if( type == ViewType.ViewTypeDay && header.isCurrentItem ) {
54
 
                    "#5D5D5D"
 
53
                    UbuntuColors.orange
55
54
                } else {
56
 
                    "#AEA79F"
 
55
                    UbuntuColors.darkGrey
57
56
                }
58
57
            }
59
58