mirror of
https://github.com/developersu/ClearClock.git
synced 2025-05-15 11:37:37 +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">
|
<div align="center">
|
||||||
|
|
||||||
# 🕒 Clear Clock
|
# 🕒 Clear Clock KDE plasma widget fork
|
||||||
A simple but configurable KDE plasmoid/widget for displaying date and time.
|
|
||||||
|
|
||||||
[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() {
|
get_project_id() {
|
||||||
line=$(grep "^X-KDE-PluginInfo-Name" package/metadata.desktop)
|
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 {
|
FontLoader {
|
||||||
id: fontOutfitRegular
|
id: fontPlayRegular
|
||||||
source: "../fonts/Outfit-Regular.ttf"
|
source: "../fonts/Play-Regular.ttf"
|
||||||
}
|
}
|
||||||
|
|
||||||
FontLoader {
|
FontLoader {
|
||||||
id: fontSmooch
|
id: fontCaveat
|
||||||
source: "../fonts/Smooch-Regular.ttf"
|
source: "../fonts/Caveat-Bold.ttf"
|
||||||
}
|
}
|
||||||
|
|
||||||
fullRepresentation: ColumnLayout {
|
fullRepresentation: ColumnLayout {
|
||||||
|
@ -77,9 +77,9 @@ PlasmoidItem {
|
||||||
property var getTextFormat: {
|
property var getTextFormat: {
|
||||||
var AMPM = plasmoid.configuration.clockUse24hFormat ? "" : " AP"
|
var AMPM = plasmoid.configuration.clockUse24hFormat ? "" : " AP"
|
||||||
if (plasmoid.configuration.clockShowSeconds)
|
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
|
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
|
text: getTextFormat
|
||||||
|
@ -106,10 +106,10 @@ PlasmoidItem {
|
||||||
visible: plasmoid.configuration.showDayDisplay
|
visible: plasmoid.configuration.showDayDisplay
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
text: Qt.formatDate(currentDateTime, "dddd")
|
text: currentDateTime.toLocaleString(Qt.locale(), "dddd")
|
||||||
|
|
||||||
color: plasmoid.configuration.dayFontColor
|
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
|
else plasmoid.configuration.dayFontFamily
|
||||||
font.bold: plasmoid.configuration.dayBoldText
|
font.bold: plasmoid.configuration.dayBoldText
|
||||||
font.italic: plasmoid.configuration.dayItalicText
|
font.italic: plasmoid.configuration.dayItalicText
|
||||||
|
@ -131,10 +131,10 @@ PlasmoidItem {
|
||||||
visible: plasmoid.configuration.showDateDisplay
|
visible: plasmoid.configuration.showDateDisplay
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
text: Qt.formatDate(currentDateTime, plasmoid.configuration.dateCustomDateFormat)
|
text: currentDateTime.toLocaleString(Qt.locale(), plasmoid.configuration.dateCustomDateFormat)
|
||||||
|
|
||||||
color: plasmoid.configuration.dateFontColor
|
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
|
else plasmoid.configuration.dateFontFamily
|
||||||
font.bold: plasmoid.configuration.dateBoldText
|
font.bold: plasmoid.configuration.dateBoldText
|
||||||
font.italic: plasmoid.configuration.dateItalicText
|
font.italic: plasmoid.configuration.dateItalicText
|
||||||
|
|
Loading…
Reference in a new issue