VignetteSection.qml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Vignette")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Strength")
  13. tooltip: qsTr("Set the vignette strength.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 15
  19. decimals: 2
  20. backendValue: backendValues.vignetteStrength
  21. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Radius")
  28. tooltip: qsTr("Set the vignette radius.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: 0
  33. maximumValue: 5
  34. decimals: 2
  35. stepSize: 0.1
  36. backendValue: backendValues.vignetteRadius
  37. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  38. + StudioTheme.Values.actionIndicatorWidth
  39. }
  40. ExpandingSpacer {}
  41. }
  42. PropertyLabel { text: qsTr("Vignette Color") }
  43. ColorEditor {
  44. backendValue: backendValues.vignetteColor
  45. supportGradient: false
  46. isVector3D: true
  47. }
  48. }
  49. }