Skip to content

Commit 70496b4

Browse files
authored
Merge branch 'caelestia-dots:main' into main
2 parents 8e9be71 + 11282f6 commit 70496b4

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ default, you must create it manually.
399399
"icon": "sports_esports"
400400
}
401401
]
402+
},
403+
"activeWindow": {
404+
"inverted": false
402405
}
403406
},
404407
"border": {

config/BarConfig.qml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ JsonObject {
77
property ScrollActions scrollActions: ScrollActions {}
88
property Popouts popouts: Popouts {}
99
property Workspaces workspaces: Workspaces {}
10+
property ActiveWindow activeWindow: ActiveWindow {}
1011
property Tray tray: Tray {}
1112
property Status status: Status {}
1213
property Clock clock: Clock {}
@@ -78,6 +79,10 @@ JsonObject {
7879
property list<var> specialWorkspaceIcons: []
7980
}
8081

82+
component ActiveWindow: JsonObject {
83+
property bool inverted: false
84+
}
85+
8186
component Tray: JsonObject {
8287
property bool background: false
8388
property bool recolour: false

flake.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/bar/components/ActiveWindow.qml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,16 @@ Item {
7979
color: root.colour
8080
opacity: root.current === this ? 1 : 0
8181

82-
transform: Rotation {
83-
angle: 90
84-
origin.x: text.implicitHeight / 2
85-
origin.y: text.implicitHeight / 2
86-
}
82+
transform: [
83+
Translate {
84+
x: Config.bar.activeWindow.inverted ? -implicitWidth + text.implicitHeight : 0
85+
},
86+
Rotation {
87+
angle: Config.bar.activeWindow.inverted ? 270 : 90
88+
origin.x: text.implicitHeight / 2
89+
origin.y: text.implicitHeight / 2
90+
}
91+
]
8792

8893
width: implicitHeight
8994
height: implicitWidth

0 commit comments

Comments
 (0)