Ver código fonte

Tweak clock

Change-Id: I2217b8b101fc88bbfae0882fe69f415169306dfa
Donald Carr 8 anos atrás
pai
commit
6a05578d11
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      qml/main.qml

+ 2 - 1
qml/main.qml

@@ -25,7 +25,7 @@ Window {
 
         function timeChanged() {
             var date = new Date;
-            timeString = date.getHours() + ':' + date.getMinutes();
+            timeString = ("00" + date.getHours()).slice(-2) + ':' + ("00" + date.getMinutes()).slice(-2);
         }
 
         property variant timeTimer: Timer {
@@ -107,6 +107,7 @@ Window {
             Text {
                 anchors.centerIn: parent
                 color: "white"//Qt.rgba(globalSettings.clockIntensity, globalSettings.clockIntensity, globalSettings.clockIntensity, 1.0)
+                font.bold: true
                 font.pixelSize: parent.height
                 text: d.timeString
             }