mirror of
https://github.com/developersu/ClearClock.git
synced 2025-05-14 11:10:27 +03:00
add few own fonts
This commit is contained in:
parent
fd9e4795d2
commit
5362addf72
11 changed files with 17 additions and 23 deletions
Binary file not shown.
Binary file not shown.
14
README.md
14
README.md
|
@ -1,15 +1,9 @@
|
|||
<div align="center">
|
||||
|
||||
# 🕒 Clear Clock
|
||||
A simple but configurable KDE plasmoid/widget for displaying date and time.
|
||||
# 🕒 Clear Clock KDE plasma widget fork
|
||||
|
||||
[KDE Store **Plasma 5**](https://store.kde.org/p/1666554/) | [KDE Store **Plasma 6**](https://store.kde.org/p/2147871/)
|
||||
Original work :https://github.com/qewer33/ClearClock
|
||||
|
||||
If you like this Plasma widget and want to support me, consider getting me a coffee! :D
|
||||
Fonts updated, user's default locale set
|
||||
|
||||
[](https://ko-fi.com/B0B8FQ871)
|
||||
|
||||
</div>
|
||||
<br>
|
||||
|
||||

|
||||

|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.5 MiB |
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
get_project_id() {
|
||||
line=$(grep "^X-KDE-PluginInfo-Name" package/metadata.desktop)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plasmoidviewer -a package
|
||||
plasmoidviewer -a package
|
||||
|
|
BIN
package/contents/fonts/Caveat-Bold.ttf
Normal file
BIN
package/contents/fonts/Caveat-Bold.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
package/contents/fonts/Play-Regular.ttf
Normal file
BIN
package/contents/fonts/Play-Regular.ttf
Normal file
Binary file not shown.
Binary file not shown.
|
@ -35,13 +35,13 @@ PlasmoidItem {
|
|||
}
|
||||
|
||||
FontLoader {
|
||||
id: fontOutfitRegular
|
||||
source: "../fonts/Outfit-Regular.ttf"
|
||||
id: fontPlayRegular
|
||||
source: "../fonts/Play-Regular.ttf"
|
||||
}
|
||||
|
||||
FontLoader {
|
||||
id: fontSmooch
|
||||
source: "../fonts/Smooch-Regular.ttf"
|
||||
id: fontCaveat
|
||||
source: "../fonts/Caveat-Bold.ttf"
|
||||
}
|
||||
|
||||
fullRepresentation: ColumnLayout {
|
||||
|
@ -77,9 +77,9 @@ PlasmoidItem {
|
|||
property var getTextFormat: {
|
||||
var AMPM = plasmoid.configuration.clockUse24hFormat ? "" : " AP"
|
||||
if (plasmoid.configuration.clockShowSeconds)
|
||||
return Qt.formatTime(currentDateTime, "hh.mm.ss" + AMPM).split(".").join(plasmoid.configuration.clockSeparator)
|
||||
return Qt.formatTime(currentDateTime, "hh:mm:ss" + AMPM).split(".").join(plasmoid.configuration.clockSeparator)
|
||||
else
|
||||
return Qt.formatTime(currentDateTime, "hh.mm" + AMPM).split(".").join(plasmoid.configuration.clockSeparator)
|
||||
return Qt.formatTime(currentDateTime, "hh:mm" + AMPM).split(".").join(plasmoid.configuration.clockSeparator)
|
||||
}
|
||||
|
||||
text: getTextFormat
|
||||
|
@ -106,10 +106,10 @@ PlasmoidItem {
|
|||
visible: plasmoid.configuration.showDayDisplay
|
||||
anchors.centerIn: parent
|
||||
|
||||
text: Qt.formatDate(currentDateTime, "dddd")
|
||||
text: currentDateTime.toLocaleString(Qt.locale(), "dddd")
|
||||
|
||||
color: plasmoid.configuration.dayFontColor
|
||||
font.family: if (plasmoid.configuration.dayFontFamily === "ccdefault") fontSmooch.name
|
||||
font.family: if (plasmoid.configuration.dayFontFamily === "ccdefault") fontCaveat.name
|
||||
else plasmoid.configuration.dayFontFamily
|
||||
font.bold: plasmoid.configuration.dayBoldText
|
||||
font.italic: plasmoid.configuration.dayItalicText
|
||||
|
@ -131,10 +131,10 @@ PlasmoidItem {
|
|||
visible: plasmoid.configuration.showDateDisplay
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
text: Qt.formatDate(currentDateTime, plasmoid.configuration.dateCustomDateFormat)
|
||||
text: currentDateTime.toLocaleString(Qt.locale(), plasmoid.configuration.dateCustomDateFormat)
|
||||
|
||||
color: plasmoid.configuration.dateFontColor
|
||||
font.family: if (plasmoid.configuration.dateFontFamily === "ccdefault") fontOutfitRegular.name
|
||||
font.family: if (plasmoid.configuration.dateFontFamily === "ccdefault") fontPlayRegular.name
|
||||
else plasmoid.configuration.dateFontFamily
|
||||
font.bold: plasmoid.configuration.dateBoldText
|
||||
font.italic: plasmoid.configuration.dateItalicText
|
||||
|
|
Loading…
Reference in a new issue