[Linux] Implement proper disconnection detection (#95)

* [Linux] Implement proper disconection detection

* Only trigger on airpod devices

* Remove unused code

* [Linux] Fix SegmentedControl text not shown in release build (but debug builds showed text)???
This commit is contained in:
Tim Gromeyer
2025-04-14 23:25:02 +02:00
committed by GitHub
parent b1811770a3
commit e384840bcc
5 changed files with 156 additions and 108 deletions

View File

@@ -53,6 +53,18 @@ Control {
height: root.availableHeight
focusPolicy: Qt.NoFocus // Let the root control handle focus
// Add explicit text color
contentItem: Text {
text: segmentButton.text
font: segmentButton.font
color: root.currentIndex === segmentButton.index ? root.selectedTextColor : root.textColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
leftPadding: 2
rightPadding: 2
elide: Text.ElideRight
}
background: Rectangle {
radius: height / 2
color: root.currentIndex === segmentButton.index ? root.selectedColor : "transparent"