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

« back to all changes in this revision

Viewing changes to TimeLineBackground.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-09-19 11:03:09 UTC
  • mto: (455.5.4 3-Improve-DayView)
  • mto: This revision was merged to the branch mainline in revision 460.
  • Revision ID: krnekhelesh@gmail.com-20140919110309-jj28bqc9y8j155gx
Improved week views

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
 
18
 
 
19
import QtQuick 2.3
19
20
import Ubuntu.Components 1.1
20
21
 
21
22
Column {
22
23
    width: parent.width
 
24
 
23
25
    Repeater {
24
26
        model: 24 // hour in a day
25
27
 
31
33
            Label {
32
34
                id: timeLabel
33
35
 
34
 
                // TRANSLATORS: this is a time formatting string,
35
 
                // see http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-date.html#details for valid expressions
36
36
                text: {
37
 
                    var locale = Qt.locale();
38
 
 
39
 
                    return new Date( 0, 0, 0, index )
40
 
                        .toLocaleTimeString( locale, locale.timeFormat( Locale.NarrowFormat ) );
 
37
                    var locale = Qt.locale()
 
38
                    return new Date(0, 0, 0, index).toLocaleTimeString
 
39
                            (locale, locale.timeFormat(Locale.NarrowFormat))
41
40
                }
42
 
                color: "#5D5D5D"
43
 
                anchors.horizontalCenter: parent.horizontalCenter
44
 
                anchors.verticalCenter: parent.verticalCenter
 
41
                color: UbuntuColors.lightGrey
 
42
                anchors.centerIn: parent
45
43
                fontSize: "x-large"
46
 
                opacity: 0.3
47
44
            }
48
45
        }
49
46
    }