From 11282f6abe32f9671dc0a7ce49d64bc4f2d79e6b Mon Sep 17 00:00:00 2001 From: Sven Fischer Date: Mon, 24 Nov 2025 09:52:09 +0100 Subject: bar/activewindow: add option to invert rotate (#922) * feat(activeWindow): Add rotation option to rotate counter-clockwise * feat(activeWindow): Change rotation to inverted boolean option * feat(activeWindow): Do not expose inverted property --- modules/bar/components/ActiveWindow.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'modules/bar/components') diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 67e7c69..0c9b21e 100644 --- a/modules/bar/components/ActiveWindow.qml +++ b/modules/bar/components/ActiveWindow.qml @@ -79,11 +79,16 @@ Item { color: root.colour opacity: root.current === this ? 1 : 0 - transform: Rotation { - angle: 90 - origin.x: text.implicitHeight / 2 - origin.y: text.implicitHeight / 2 - } + transform: [ + Translate { + x: Config.bar.activeWindow.inverted ? -implicitWidth + text.implicitHeight : 0 + }, + Rotation { + angle: Config.bar.activeWindow.inverted ? 270 : 90 + origin.x: text.implicitHeight / 2 + origin.y: text.implicitHeight / 2 + } + ] width: implicitHeight height: implicitWidth -- cgit v1.2.3-freya