Jelajahi Sumber

fix stop button

tuanchris 3 bulan lalu
induk
melakukan
bff1cf4bab

+ 1 - 0
dune-weaver-touch/qml/pages/ExecutionPage.qml

@@ -341,6 +341,7 @@ Page {
                                     
                                     // Stop button
                                     Rectangle {
+                                        width: (parent.width - 16) / 3
                                         height: parent.height
                                         radius: 6
                                         color: stopMouseArea.pressed ? "#b91c1c" : (backend && backend.currentFile !== "" ? "#dc2626" : "#9ca3af")

+ 60 - 4
dune-weaver-touch/qml/pages/ModernPlaylistPage.qml

@@ -282,6 +282,14 @@ Page {
                         font.pixelSize: 14
                         flat: true
                         onClicked: showPlaylistList()
+
+                        contentItem: Text {
+                            text: parent.text
+                            font: parent.font
+                            color: Components.ThemeManager.textPrimary
+                            horizontalAlignment: Text.AlignHCenter
+                            verticalAlignment: Text.AlignVCenter
+                        }
                     }
                     
                     Label {
@@ -554,8 +562,16 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) runMode = "single"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
-                                            
+
                                             RadioButton {
                                                 id: loopModeRadio
                                                 text: "Loop"
@@ -564,6 +580,14 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) runMode = "loop"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
                                         }
                                     }
@@ -800,8 +824,16 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) clearPattern = "adaptive"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
-                                            
+
                                             RadioButton {
                                                 text: "Clear Center"
                                                 font.pixelSize: 11
@@ -809,8 +841,16 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) clearPattern = "clear_center"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
-                                            
+
                                             RadioButton {
                                                 text: "Clear Edge"
                                                 font.pixelSize: 11
@@ -818,8 +858,16 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) clearPattern = "clear_perimeter"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
-                                            
+
                                             RadioButton {
                                                 text: "None"
                                                 font.pixelSize: 11
@@ -827,6 +875,14 @@ Page {
                                                 onCheckedChanged: {
                                                     if (checked) clearPattern = "none"
                                                 }
+
+                                                contentItem: Text {
+                                                    text: parent.text
+                                                    font: parent.font
+                                                    color: Components.ThemeManager.textPrimary
+                                                    verticalAlignment: Text.AlignVCenter
+                                                    leftPadding: parent.indicator.width + parent.spacing
+                                                }
                                             }
                                         }
                                     }

+ 43 - 3
dune-weaver-touch/qml/pages/PatternDetailPage.qml

@@ -48,6 +48,14 @@ Page {
                     font.pixelSize: 14
                     flat: true
                     onClicked: stackView.pop()
+
+                    contentItem: Text {
+                        text: parent.text
+                        font: parent.font
+                        color: Components.ThemeManager.textPrimary
+                        horizontalAlignment: Text.AlignHCenter
+                        verticalAlignment: Text.AlignVCenter
+                    }
                 }
                 
                 Label {
@@ -188,24 +196,56 @@ Page {
                                 text: "Adaptive"
                                 checked: true
                                 font.pixelSize: 10
+
+                                contentItem: Text {
+                                    text: parent.text
+                                    font: parent.font
+                                    color: Components.ThemeManager.textPrimary
+                                    verticalAlignment: Text.AlignVCenter
+                                    leftPadding: parent.indicator.width + parent.spacing
+                                }
                             }
-                            
+
                             RadioButton {
                                 id: centerRadio
                                 text: "Clear Center"
                                 font.pixelSize: 10
+
+                                contentItem: Text {
+                                    text: parent.text
+                                    font: parent.font
+                                    color: Components.ThemeManager.textPrimary
+                                    verticalAlignment: Text.AlignVCenter
+                                    leftPadding: parent.indicator.width + parent.spacing
+                                }
                             }
-                            
+
                             RadioButton {
                                 id: perimeterRadio
                                 text: "Clear Edge"
                                 font.pixelSize: 10
+
+                                contentItem: Text {
+                                    text: parent.text
+                                    font: parent.font
+                                    color: Components.ThemeManager.textPrimary
+                                    verticalAlignment: Text.AlignVCenter
+                                    leftPadding: parent.indicator.width + parent.spacing
+                                }
                             }
-                            
+
                             RadioButton {
                                 id: noneRadio
                                 text: "None"
                                 font.pixelSize: 10
+
+                                contentItem: Text {
+                                    text: parent.text
+                                    font: parent.font
+                                    color: Components.ThemeManager.textPrimary
+                                    verticalAlignment: Text.AlignVCenter
+                                    leftPadding: parent.indicator.width + parent.spacing
+                                }
                             }
                         }
                     }