* add nlhomann json header * add get scene app fn * add get current binding and related logic * add save binding file to settings folder * apply binding fn added fixed uid bug * add button logic to QML, add enable Bind Setting * add finding logic for all custom bind * fix minor qml issues * fix get controllername bug, fix bug with save bind * fix regex issue * change webrequest for selectconfig * change to properly urlify path to send * fix race condition web requests * change steamvr tab qml formatting * change color scheme * change colors of icons to text color * change bind qml better for better ux * add possible workaround for space drag issues * add deact color to pushbutton * increment version * adjust button size in movecenter * move nlhomann json * fix PKGBUILD to include missing dependency (#606) (#613) It turns out qt5-websockets needs to be included for a successful build. Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com> * fix warning * improved logging messages around perapp bindings * improve getsceneappID logging * add HMD based controller Finding * improve logging controller name * change logging around initial chaperone calibration * increment version * improve logging/error handling around sceneappid failures * added fallback for getting scene app by pid * update version string * update documentation Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com>
66 lines
1.5 KiB
QML
66 lines
1.5 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import "." // QTBUG-34418, singletons require explicit import to load qmldir file
|
|
// Needed for MyResources in the default folder.
|
|
import ".."
|
|
|
|
CheckBox {
|
|
checkState: Qt.Checked
|
|
tristate: false
|
|
hoverEnabled: true
|
|
spacing: 12
|
|
|
|
indicator: Rectangle {
|
|
implicitWidth: 28
|
|
implicitHeight: 28
|
|
x: parent.leftPadding
|
|
y: parent.height / 2 - height / 2
|
|
color: parent.enabled ? (parent.down ? "#181a1e" : "#3d4450") : "#181a1e"
|
|
border.width: 0
|
|
Path {
|
|
startX: 0
|
|
startY: 0
|
|
PathLine {
|
|
x: 40
|
|
y: 40
|
|
}
|
|
}
|
|
|
|
Image {
|
|
width: 28
|
|
height: 28
|
|
x: (parent.width - width) / 2
|
|
y: (parent.height - height) / 2
|
|
source: "qrc:/common/box_checkmark"
|
|
sourceSize.width: width
|
|
sourceSize.height: height
|
|
visible: parent.parent.checked
|
|
}
|
|
}
|
|
|
|
contentItem: MyText {
|
|
text: parent.text
|
|
horizontalAlignment: Text.AlignLeft
|
|
verticalAlignment: Text.AlignVCenter
|
|
leftPadding: parent.indicator.width + parent.spacing
|
|
color: parent.enabled ? "#d9dbe0" : "#65676b"
|
|
}
|
|
|
|
background: Rectangle {
|
|
color: "#2a2e35"
|
|
opacity: parent.activeFocus ? 1.0 : 0
|
|
}
|
|
|
|
onHoveredChanged: {
|
|
if (hovered) {
|
|
forceActiveFocus()
|
|
} else {
|
|
focus = false
|
|
}
|
|
}
|
|
|
|
onClicked: {
|
|
MyResources.playActivationSound()
|
|
}
|
|
}
|