From c5381c5194adf97c240acb98eb4c4c950633b325 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 4 Aug 2025 22:45:15 +1000 Subject: internal: refactor widgets folder Split into subdirs and rename to components --- widgets/ExtraIndicator.qml | 52 ---------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 widgets/ExtraIndicator.qml (limited to 'widgets/ExtraIndicator.qml') diff --git a/widgets/ExtraIndicator.qml b/widgets/ExtraIndicator.qml deleted file mode 100644 index fd6f6ee..0000000 --- a/widgets/ExtraIndicator.qml +++ /dev/null @@ -1,52 +0,0 @@ -import qs.services -import qs.config -import QtQuick - -StyledRect { - required property int extra - - anchors.right: parent.right - anchors.margins: Appearance.padding.normal - - color: Colours.palette.m3tertiary - radius: Appearance.rounding.small - - implicitWidth: count.implicitWidth + Appearance.padding.normal * 2 - implicitHeight: count.implicitHeight + Appearance.padding.small * 2 - - opacity: extra > 0 ? 1 : 0 - scale: extra > 0 ? 1 : 0.5 - - Elevation { - anchors.fill: parent - radius: parent.radius - opacity: parent.opacity - z: -1 - level: 2 - } - - StyledText { - id: count - - anchors.centerIn: parent - animate: parent.opacity > 0 - text: qsTr("+%1").arg(parent.extra) - color: Colours.palette.m3onTertiary - } - - Behavior on opacity { - NumberAnimation { - duration: Appearance.anim.durations.expressiveFastSpatial - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } - - Behavior on scale { - NumberAnimation { - duration: Appearance.anim.durations.expressiveFastSpatial - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial - } - } -} -- cgit v1.2.3-freya