Rectangle { id: rect width: 540; height: 54 color: "transparent" anchors { horizontalCenter: parent.horizontalCenter bottom: parent.bottom } Text { id: greetingText color: Theme.primaryColor font { pixelSize: Theme.fontSizeMedium; capitalization: Font.Capitalize; } anchors { horizontalCenter: parent.horizontalCenter bottom: parent.bottom bottomMargin: Theme.paddingMedium } text: { updatesEnabled: timeText.time var greetingText; var time = new Date().getHours(); if (time >= 0 && time < 12){ greetingText = "good <b>morning</b>"; } else if (time >= 12 && time < 16){ greetingText = "good <b>afternoon</b>"; } else if (time >= 16 && time < 21){ greetingText = "good <b>evening</b>"; } else if (time >= 21 && time < 24){ greetingText = "good <b>night</b>"; } } OpacityAnimator on opacity { from: 1.0; to: 0.0; duration: 20000; loops: Animation.Running } } } } }