From ee8f3d9d7bf11090a57d3e9eaf6a6def66d94482 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 4 Sep 2025 10:15:41 -0400 Subject: [PATCH 1/2] cleaner way to write it --- widgets/StyledText.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 } } From 69cb49c584acb48f17696d10f4d6f5f4e72e6a4d Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 4 Sep 2025 10:20:17 -0400 Subject: [PATCH 2/2] limit decimal amount --- modules/bar/components/Power.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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