~nik90/ubuntu-clock-app/add-utc-city

« back to all changes in this revision

Viewing changes to app/upstreamcomponents/FakeHeader.qml

  • Committer: Tarmac
  • Author(s): Nekhelesh Ramananthan
  • Date: 2014-09-03 22:01:51 UTC
  • mfrom: (73.1.9 fix-jarring-alarm-header)
  • Revision ID: tarmac-20140903220151-8a2bqvl0ycnzu28w
Fix the alarm head animation being jarring by introducing a nice slide in animation. Fixes: https://bugs.launchpad.net/bugs/1362081.

Approved by PS Jenkins bot, Riccardo Padovani.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Canonical Ltd
 
3
 *
 
4
 * This file is part of Ubuntu Clock App
 
5
 *
 
6
 * Ubuntu Clock App is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 3 as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * Ubuntu Clock App is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 2.3
 
20
import Ubuntu.Components 1.1
 
21
 
 
22
Column {
 
23
    id: fakeHeader
 
24
 
 
25
    height: units.gu(9)
 
26
 
 
27
    Rectangle {
 
28
        height: units.gu(7)
 
29
        width: parent.width
 
30
        color: Theme.palette.normal.background
 
31
    }
 
32
    
 
33
    Rectangle {
 
34
        color: "#C9C9C9"
 
35
        height: units.gu(2)
 
36
        anchors.left: parent.left
 
37
        anchors.right: parent.right
 
38
    }
 
39
}