HDRBloomTonemapSection.qml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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("Tonemap")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Gamma")
  13. tooltip: qsTr("Amount of gamma.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0.1
  18. maximumValue: 4
  19. decimals: 2
  20. stepSize: 0.1
  21. backendValue: backendValues.gamma
  22. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. PropertyLabel {
  28. text: qsTr("Exposure")
  29. tooltip: qsTr("Amount of exposure.")
  30. }
  31. SecondColumnLayout {
  32. SpinBox {
  33. minimumValue: -9
  34. maximumValue: 9
  35. decimals: 2
  36. backendValue: backendValues.exposure
  37. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  38. + StudioTheme.Values.actionIndicatorWidth
  39. }
  40. ExpandingSpacer {}
  41. }
  42. PropertyLabel {
  43. text: qsTr("Blur Falloff")
  44. tooltip: qsTr("Amount of blur falloff.")
  45. }
  46. SecondColumnLayout {
  47. SpinBox {
  48. minimumValue: 0
  49. maximumValue: 10
  50. decimals: 2
  51. backendValue: backendValues.blurFalloff
  52. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  53. + StudioTheme.Values.actionIndicatorWidth
  54. }
  55. ExpandingSpacer {}
  56. }
  57. PropertyLabel {
  58. text: qsTr("Tonemapping Lerp")
  59. tooltip: qsTr("Tonemapping linear interpolation value.")
  60. }
  61. SecondColumnLayout {
  62. SpinBox {
  63. minimumValue: 0
  64. maximumValue: 1
  65. decimals: 2
  66. stepSize: 0.1
  67. backendValue: backendValues.tonemappingLerp
  68. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  69. + StudioTheme.Values.actionIndicatorWidth
  70. }
  71. ExpandingSpacer {}
  72. }
  73. PropertyLabel {
  74. text: qsTr("Bloom Threshold")
  75. tooltip: qsTr("Bloom color threshold value.")
  76. }
  77. SecondColumnLayout {
  78. SpinBox {
  79. minimumValue: 0
  80. maximumValue: 1
  81. decimals: 3
  82. stepSize: 0.1
  83. backendValue: backendValues.bloomThreshold
  84. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  85. + StudioTheme.Values.actionIndicatorWidth
  86. }
  87. ExpandingSpacer {}
  88. }
  89. PropertyLabel {
  90. text: qsTr("Channel Threshold")
  91. tooltip: qsTr("Channel color threshold value.")
  92. }
  93. SecondColumnLayout {
  94. SpinBox {
  95. minimumValue: 0
  96. maximumValue: 1
  97. decimals: 3
  98. stepSize: 0.1
  99. backendValue: backendValues.channelThreshold
  100. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  101. + StudioTheme.Values.actionIndicatorWidth
  102. }
  103. ExpandingSpacer {}
  104. }
  105. }
  106. }