Преглед изворни кода

Add rotation to Menu popup for Pi 5

Menu overlays render outside normal item hierarchy and need
explicit rotation transform for Pi 5 linuxfb compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris пре 1 месец
родитељ
комит
5f73bd6f26
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      dune-weaver-touch/qml/pages/TableControlPage.qml

+ 8 - 1
dune-weaver-touch/qml/pages/TableControlPage.qml

@@ -185,7 +185,14 @@ Page {
                                 Menu {
                                     id: portMenu
                                     y: parent.height
-                                    
+
+                                    // Rotate menu for Pi 5 linuxfb
+                                    transform: Rotation {
+                                        angle: typeof rotateDisplay !== 'undefined' && rotateDisplay ? 180 : 0
+                                        origin.x: portMenu.width / 2
+                                        origin.y: portMenu.height / 2
+                                    }
+
                                     Repeater {
                                         model: serialPorts
                                         MenuItem {