Add date and time parsing and add colors from matugen to all current elements of top bar
This commit is contained in:
@@ -5,7 +5,7 @@ import "../constants"
|
||||
|
||||
Text {
|
||||
id: clock
|
||||
color: Constants.colBlue
|
||||
color: Colors.md3.on_primary_fixed
|
||||
|
||||
font {
|
||||
family: Constants.fontFamily
|
||||
@@ -14,7 +14,7 @@ Text {
|
||||
}
|
||||
|
||||
function updateTime() {
|
||||
text = Qt.formatDateTime(new Date(), "ddd, MMM dd - HH:mm");
|
||||
text = Qt.formatDateTime(new Date(), "[dd-MM-yy] - [HH:mm]");
|
||||
}
|
||||
|
||||
Component.onCompleted: updateTime()
|
||||
|
||||
Reference in New Issue
Block a user