Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion package/contents/config/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
<entry name="use_24_hour_format" type="Bool">
<default>false</default>
</entry>
<entry name="follow_system_text_color" type="Bool">
<default>true</default>
</entry>
<entry name="time_character" type="String">
<default>-</default>
</entry>
</group>
</kcfg>
</kcfg>
8 changes: 8 additions & 0 deletions package/contents/ui/configAppearance.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ Kirigami.ScrollablePage {
property alias cfg_time_character: timeCharacter.text
property alias cfg_date_format: dateFormat.text
property alias cfg_date_font_color: dateFontColor.color
property alias cfg_follow_system_text_color: followSystemTextColor.checked

Kirigami.FormLayout {
RowLayout {
Label { text: i18n("Follow system text color") }
CheckBox { id: followSystemTextColor }
}
Title {
title: i18n("Day")
}
Expand All @@ -47,6 +52,7 @@ Kirigami.ScrollablePage {
ColorDial {
id: dayFontColor
color: cfg_day_font_color
enabled: !followSystemTextColor.checked
}
Title {
title: i18n("Date")
Expand Down Expand Up @@ -78,6 +84,7 @@ Kirigami.ScrollablePage {
ColorDial {
id: dateFontColor
color: cfg_date_font_color
enabled: !followSystemTextColor.checked
}

Title {
Expand Down Expand Up @@ -119,6 +126,7 @@ Kirigami.ScrollablePage {
ColorDial {
id: timeFontColor
color: cfg_time_font_color
enabled: !followSystemTextColor.checked
}
}
}
19 changes: 16 additions & 3 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.plasma5support as Plasma5Support

PlasmoidItem {
SystemPalette {
id: sysPalette
colorGroup: SystemPalette.Active
}
id: root


Expand Down Expand Up @@ -80,9 +84,12 @@ PlasmoidItem {
font.pixelSize: plasmoid.configuration.day_font_size
font.letterSpacing: plasmoid.configuration.day_letter_spacing
font.family: font_anurati.name
color: plasmoid.configuration.day_font_color
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter

color: plasmoid.configuration.follow_system_text_color
? sysPalette.windowText
: plasmoid.configuration.day_font_color
}

// The Date
Expand All @@ -96,9 +103,12 @@ PlasmoidItem {
font.pixelSize: plasmoid.configuration.date_font_size
font.letterSpacing: plasmoid.configuration.date_letter_spacing
font.family: font_poppins.name
color: plasmoid.configuration.date_font_color
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter

color: plasmoid.configuration.follow_system_text_color
? sysPalette.windowText
: plasmoid.configuration.date_font_color
}

// The Time
Expand All @@ -111,10 +121,13 @@ PlasmoidItem {
// font settings
font.pixelSize: plasmoid.configuration.time_font_size
font.family: font_poppins.name
color: plasmoid.configuration.time_font_color
font.letterSpacing: plasmoid.configuration.time_letter_spacing
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter

color: plasmoid.configuration.follow_system_text_color
? sysPalette.windowText
: plasmoid.configuration.time_font_color
}
}
}
Expand Down