Merge pull request #1 from hat3ph/dateformat
add option to customize date format
This commit is contained in:
2
Main.qml
2
Main.qml
@@ -229,7 +229,7 @@ Rectangle {
|
|||||||
id: date
|
id: date
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
color: clock.color
|
color: clock.color
|
||||||
text : Qt.formatDate(clock.dateTime, Qt.DefaultLocaleLongDate)
|
text : Qt.formatDate(clock.dateTime, config.dateFormat || "dddd, dd MMMM yyyy")
|
||||||
font.family: textFont.name
|
font.family: textFont.name
|
||||||
font.pointSize: config.dateFontSize
|
font.pointSize: config.dateFontSize
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ You can change a few settings in this file
|
|||||||
- `bgVidDay` and `bgImgNight` - video day/night playlists
|
- `bgVidDay` and `bgImgNight` - video day/night playlists
|
||||||
- `displayFont` - font
|
- `displayFont` - font
|
||||||
- `clockFontSize`, `dateFontSize`, `labelFontSize`, `errorMsgFontSize` and `languageBoxFontSize` - customize font size
|
- `clockFontSize`, `dateFontSize`, `labelFontSize`, `errorMsgFontSize` and `languageBoxFontSize` - customize font size
|
||||||
- `timeFormat` - customize time format
|
- `dateFormat` and `timeFormat` - customize [date and time](https://doc.qt.io/qt-5/qml-qtqml-date.html) format
|
||||||
- `showLoginButton` - if set to false will hide the login button
|
- `showLoginButton` - if set to false will hide the login button
|
||||||
- `showClearPasswordButton` - if set to false will hide the clear password button that appears when text is inputed
|
- `showClearPasswordButton` - if set to false will hide the clear password button that appears when text is inputed
|
||||||
- `passwordLeftMargin` and `usernameLeftMargin` - set margin between input boxes and labels, some fonts are messy and allows fixing of overlap
|
- `passwordLeftMargin` and `usernameLeftMargin` - set margin between input boxes and labels, some fonts are messy and allows fixing of overlap
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ labelFontSize="16"
|
|||||||
errorMsgFontSize="12"
|
errorMsgFontSize="12"
|
||||||
languageBoxFontSize="14"
|
languageBoxFontSize="14"
|
||||||
timeFormat="hh:mm"
|
timeFormat="hh:mm"
|
||||||
|
dateFormat="dddd, dd MMMM yyyy"
|
||||||
showLoginButton=true
|
showLoginButton=true
|
||||||
passwordLeftMargin=15
|
passwordLeftMargin=15
|
||||||
usernameLeftMargin=15
|
usernameLeftMargin=15
|
||||||
|
|||||||
Reference in New Issue
Block a user