diff --git a/modules/bar/components/Power.qml b/modules/bar/components/Power.qml index deb234a..5cb6150 100644 --- a/modules/bar/components/Power.qml +++ b/modules/bar/components/Power.qml @@ -53,7 +53,7 @@ StyledButton { } return Theme.palette.basecontent; } - text: `${(root.laptopBattery.percentage.toFixed(2) * 100)}%` + text: `${root.laptopBattery.percentage * 100}%` } } visible: laptopBattery diff --git a/widgets/StyledText.qml b/widgets/StyledText.qml index 4fe365e..eca51b9 100644 --- a/widgets/StyledText.qml +++ b/widgets/StyledText.qml @@ -4,7 +4,10 @@ import QtQuick Text { font.family: Theme.fontFamily color: Theme.palette.basecontent - ColorAnimation on color { - duration: 100 + Behavior on color { + ColorAnimation { + duration: 200 + easing.type: Easing.InOutQuad + } } }