
Minimal Clock
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
gvcastellon
2 years ago
~/.local/share/plasma/plasmoids/minimalclock/contents/ui> main.qml
Text {
id: time
font.family:textFont
font.bold: false
color: textColor
font.pointSize: 75
text: Qt.formatTime( dataSource.data["Local"]["DateTime"],"h:mm ap") .replace(' am', '').replace(' pm', '');
anchors {
top: parent.top;
left: parent.left;
}
}
Text {
id: ampm
font.family:textFont
opacity: 0.5
color: textColor
font.pointSize: 50
text : Qt.formatTime( dataSource.data["Local"]["DateTime"]," ap" )
anchors {
top: parent.top;
left: time.right;
}
}
Text {
id: date
font.family:textFont
color: textColor
font.pointSize: 32
text : Qt.formatDate( dataSource.data["Local"]["DateTime"],"dddd, MMM d yyyy" )
anchors {
top: time.bottom;
left: parent.left;
}
}
...you can see an example in this screenshot. http://i65.tinypic.com/2rfprb7.png
Report
gvcastellon
2 years ago
http://www.dafont.com/geo-sans-light.font
I'm sorry for forgetting to put it in the first comment.
Have a lot of Fun!!
Report
mmdm
3 years ago
Report
hamez
3 years ago
Here it is packaged if you want it: https://drive.google.com/file/d/0Bz3pRDjSXE7RUTQycC1CYmthazQ/view?usp=sharing
Report
DavidEdmundson
3 years ago
Report
obedlink
4 years ago
can you add in the configure dialog the option to change between 24h and 12h?
Report