Skip to content

Commit

Permalink
Use vertical slider instead of horizontal for zoom adjuster
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Mar 24, 2024
1 parent 33bba80 commit ee0449e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions gui/src/qml/StreamView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ Item {
Keys.onEscapePressed: menuView.close()
}

C.Slider {
Slider {
id: zoomFactor
orientation: Qt.Vertical
from: 0
to: 4
Layout.preferredHeight: 100
stepSize: 0.01
visible: Chiaki.window.videoMode == ChiakiWindow.VideoMode.Zoom
value: Chiaki.window.ZoomFactor
Expand All @@ -277,9 +279,16 @@ Item {
Label {
anchors {
top: parent.bottom
horizontalCenter: parent.horizontalCenter
leftMargin: 10
}
text: qsTr("%1").arg(parent.value)
text: {
if(parent.value === 0)
qsTr("No Black Bars")
else
qsTr("%1 x").arg(parent.value + 1)
}

}
}

Expand Down

0 comments on commit ee0449e

Please sign in to comment.