1212 property alias sliderViewfinderBrightness: sliderViewfinderBrightness
1313 property alias sliderFlashBrightness: sliderFlashBrightness
1414 property alias switchFlashEnable: switchFlashEnable
15+ property alias switchBackgroundFilterEnable: switchBackgroundFilterEnable
1516 property alias switchChromaKeyEnable: switchChromaKeyEnable
16- // property alias sliderChromaKeyFilterStrength: sliderChromaKeyFilterStrength
1717 property alias sliderChromaKeyFilterColor: sliderChromaKeyFilterColor
1818 opacity: 0.5
1919 spacing: 5
@@ -233,7 +233,7 @@ Pane {
233233
234234 RowLayout
235235 {
236- id: chromaKey
236+ id: backgroundFilterLabel
237237
238238 spacing: 15
239239
@@ -245,63 +245,56 @@ Pane {
245245 }
246246
247247 Label {
248- id: labelChromaKey
248+ id: labelBackgroundFilter
249249 font .pixelSize : 32
250- text: qsTr (" Chroma Key " )
250+ text: qsTr (" Background Filter " )
251251 font .family : " DejaVu Serif"
252252 }
253253 }
254254
255255 RowLayout
256256 {
257257 Label {
258- id: labelChromaKeyFilterEnable
258+ id: labelBackgroundFilterEnable
259259 font .pixelSize : 32
260260 text: " Filter: "
261261 }
262262
263263 Switch {
264- id: switchChromaKeyEnable
264+ id: switchBackgroundFilterEnable
265265 text: checked ? qsTr (" enabled" ) : qsTr (" disabled" )
266266 font .pixelSize : 32
267267 font .family : " DejaVu Serif"
268268 width: 250
269269 }
270-
271270 }
272271
273-
274- /* RowLayout {
275- id: rowChromaKeyFilterStrength
276- spacing: 20
272+ RowLayout
273+ {
274+ visible: switchBackgroundFilterEnable .checked
277275
278276 Label {
279- id: labelChromaKeyFilterStrengthLow
277+ id: labelChromaKeyFilterEnable
280278 font .pixelSize : 32
281- text: "\uE814"
282- font.family: "fontello"
279+ text: " Type: "
283280 }
284281
285- Slider {
286- id: sliderChromaKeyFilterStrength
287- value: 0.5
288- from: 0.5
289- to: 10.0
282+ Switch {
283+ id: switchChromaKeyEnable
284+ text : checked ? qsTr ( " chroma " ) : qsTr ( " neural " )
285+ font . pixelSize : 32
286+ font . family : " DejaVu Serif "
290287 width: 250
291288 }
292289
293- Label {
294- id: labelChromaKeyFilterStrengthHigh
295- font.pixelSize: 32
296- text: "\uE813"
297- font.family: "fontello"
298- }
299- } */
290+ }
300291
301292 RowLayout {
302293 id: rowChromaKeyFilterColor
303294 spacing: 20
304295
296+ visible: switchChromaKeyEnable .checked & switchBackgroundFilterEnable .checked
297+
305298 Rectangle
306299 {
307300 color: " Green"
0 commit comments