Align window chrome with Sway title bars

Adds focused title-bar geometry to the window service and updates the Sway backend to derive frame data more reliably (including parent node fallback and content rect tracking for wrapped/floating views). Window chrome positioning now centers against the actual title bar instead of deco offsets, improving alignment. Also refreshes visual sizing/padding for traffic-light controls and Sway titlebar spacing to match the new chrome metrics.
This commit is contained in:
2026-08-26 22:45:50 +12:00
parent 4321209e92
commit 4d70014242
9 changed files with 100 additions and 33 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ QtObject {
readonly property int topBarHeight: 40
readonly property int controlHeight: 28
readonly property int searchHeight: 36
readonly property int trafficLightSize: 12
readonly property int trafficLightSize: 18
readonly property int trafficLightGap: 8
readonly property int windowChromeInset: 10
readonly property int windowChromeInset: 12
readonly property int fontSize: 13
readonly property int fontSizeApp: 12