Brightness Opacity Refactor + Gain behavior (#355)

* added loop update tick for Synchronizeing while dashboard up

* fixed gain to allow better synching w/ external apps.

* removed extra setting brighnessValue fixed toggle error for brightness Overlay fixed gain synch error

* fixed compiler warning implicit conversion
This commit is contained in:
ykeara
2020-01-18 11:30:08 -06:00
committed by GitHub
parent dbfb3d69f7
commit 50c8415669
7 changed files with 140 additions and 62 deletions
@@ -62,7 +62,7 @@ GroupBox {
}
onValueChanged: {
VideoTabController.setBrightnessValue(value.toFixed(2), true)
VideoTabController.setBrightnessOpacityValue(value.toFixed(2), true)
}
}
@@ -84,22 +84,22 @@ GroupBox {
var v = (val/100).toFixed(2)
brightnessSlider.value = v
}
text = Math.round(VideoTabController.brightnessValue * 100) + "%"
text = Math.round(VideoTabController.brightnessOpacityValue * 100) + "%"
}
}
}
}
Component.onCompleted: {
brightnessSlider.value = VideoTabController.brightnessValue
brightnessSlider.value = VideoTabController.brightnessOpacityValue
brightnessToggle.checked = VideoTabController.brightnessEnabled
}
Connections {
target: VideoTabController
onBrightnessValueChanged: {
brightnessSlider.value = VideoTabController.brightnessValue
onBrightnessOpacityValueChanged: {
brightnessSlider.value = VideoTabController.brightnessOpacityValue
}
onBrightnessEnabledChanged: {
brightnessToggle.checked = VideoTabController.brightnessEnabled
@@ -63,7 +63,7 @@ GroupBox {
}
onValueChanged: {
VideoTabController.setBrightnessValue(value.toFixed(2), true)
VideoTabController.setBrightnessOpacityValue(value.toFixed(2), true)
}
}
@@ -85,7 +85,7 @@ GroupBox {
var v2 = (val2/100).toFixed(2)
brightnessSlider.value = v
}
text = Math.round(VideoTabController.brightnessValue * 100) + "%"
text = Math.round(VideoTabController.brightnessOpacityValue * 100) + "%"
}
}
}
@@ -285,7 +285,7 @@ GroupBox {
}
Component.onCompleted: {
brightnessSlider.value = VideoTabController.brightnessValue
brightnessSlider.value = VideoTabController.brightnessOpacityValue
brightnessToggle.checked = VideoTabController.brightnessEnabled
colorToggle.checked = VideoTabController.colorOverlayEnabled
opacitySlider.value = VideoTabController.colorOverlayOpacity
@@ -303,8 +303,8 @@ GroupBox {
Connections {
target: VideoTabController
onBrightnessValueChanged: {
brightnessSlider.value = VideoTabController.brightnessValue
onBrightnessOpacityValueChanged: {
brightnessSlider.value = VideoTabController.brightnessOpacityValue
}
onBrightnessEnabledChanged: {
brightnessToggle.checked = VideoTabController.brightnessEnabled