2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Renato Araujo Oliveira Filho <renato@canonical.com>
18 * Ubo Riboni <ugo.riboni@canonical.com>
22import Ubuntu.Components 0.1
27 contentHeight: image.height
35 source: "../graphics/time_and_date@18.png"
36 fillMode: Image.PreserveAspectFit
42 topMargin: units.gu(5)
52 horizontalCenter: parent.horizontalCenter
53 verticalCenter: parent.verticalCenter
57 color: Theme.palette.selected.backgroundText
58 font.weight: Font.Light
59 font.pixelSize: units.gu(6)
67 leftMargin: units.gu(2)
69 bottomMargin: units.gu(1.5)
72 color: Theme.palette.selected.backgroundText
78 interval: 1000 * 10 // 10 seconds
81 triggeredOnStart: true
82 onTriggered: updateTime();
85 function updateTime() {
87 var time = Qt.formatTime(dt);
88 var space = time.indexOf(" ");
89 timeLabel.text = time.substr(0, space > 0 ? space : 5);
90 dateLabel.text = Qt.formatDateTime(dt, "dddd,\ndd MMMM");
93 // Make it compatible with the PluginItem interface
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list