mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-04 00:53:52 +00:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user