summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
authorATDMA <atdma2600@gmail.com>2025-11-24 16:55:45 +0000
committerGitHub <noreply@github.com>2025-11-24 16:55:45 +0000
commit70496b402df73a2dc5af749b9e471848e6ac1239 (patch)
treedad6e9b55ffb53fed0c467e594c29b65f9bb73c0 /modules/bar/components
parentcontrolcenter: cleaned up wallpapergrid (diff)
parentbar/activewindow: add option to invert rotate (#922) (diff)
downloadcaelestia-shell-70496b402df73a2dc5af749b9e471848e6ac1239.tar.gz
caelestia-shell-70496b402df73a2dc5af749b9e471848e6ac1239.tar.bz2
caelestia-shell-70496b402df73a2dc5af749b9e471848e6ac1239.zip
Merge branch 'caelestia-dots:main' into main
Diffstat (limited to 'modules/bar/components')
-rw-r--r--modules/bar/components/ActiveWindow.qml15
1 files changed, 10 insertions, 5 deletions
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