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