Explorar o código

Tweak clock

Change-Id: I2217b8b101fc88bbfae0882fe69f415169306dfa
Donald Carr %!s(int64=8) %!d(string=hai) anos
pai
achega
6a05578d11
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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
             }