aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/effects/designer/LevelAdjustEffectSpecifics.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/effects/designer/LevelAdjustEffectSpecifics.qml')
-rw-r--r--src/imports/effects/designer/LevelAdjustEffectSpecifics.qml188
1 files changed, 103 insertions, 85 deletions
diff --git a/src/imports/effects/designer/LevelAdjustEffectSpecifics.qml b/src/imports/effects/designer/LevelAdjustEffectSpecifics.qml
index 7981398..6ce7fdd 100644
--- a/src/imports/effects/designer/LevelAdjustEffectSpecifics.qml
+++ b/src/imports/effects/designer/LevelAdjustEffectSpecifics.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Designer Components.
@@ -27,9 +27,10 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.15
+import QtQuick.Layouts 1.15
import HelperWidgets 2.0
-import QtQuick.Layouts 1.0
+import StudioTheme 1.0 as StudioTheme
Column {
anchors.left: parent.left
@@ -41,105 +42,121 @@ Column {
caption: qsTr("Level Adjust")
SectionLayout {
- rows: 2
- Label {
+ PropertyLabel {
text: qsTr("Gamma")
- toolTip: qsTr("The change factor for how the luminance of each pixel is altered.")
+ tooltip: qsTr("The change factor for how the luminance of each pixel is altered.")
}
+
SecondColumnLayout {
- ColumnLayout {
- RowLayout {
- Label {
- text: qsTr("R")
- }
- SpinBox {
- minimumValue: 0
- maximumValue: 100
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.gammaR
- Layout.fillWidth: true
- sliderIndicatorVisible: true
- }
- }
- RowLayout {
- Label {
- text: qsTr("G")
- }
- SpinBox {
- minimumValue: 0
- maximumValue: 100
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.gammaG
- Layout.fillWidth: true
- sliderIndicatorVisible: true
- }
- }
- RowLayout {
- Label {
- text: qsTr("B")
- }
- SpinBox {
- minimumValue: 0
- maximumValue: 100
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.gammaB
- Layout.fillWidth: true
- sliderIndicatorVisible: true
- }
- }
+ SpinBox {
+ minimumValue: 0
+ maximumValue: 100
+ decimals: 2
+ stepSize: 0.1
+ backendValue: backendValues.gammaR
+ sliderIndicatorVisible: true
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ }
+
+ Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
+
+ ControlLabel {
+ text: qsTr("R", "red")
}
+
+ ExpandingSpacer {}
}
- }
- }
- Section {
- anchors.left: parent.left
- anchors.right: parent.right
- caption: qsTr("Minimum Input")
+ PropertyLabel {}
- ColorEditor {
- caption: qsTr("Minimum Input")
- backendValue: backendValues.minimumInput
- supportGradient: false
- }
- }
+ SecondColumnLayout {
+ SpinBox {
+ minimumValue: 0
+ maximumValue: 100
+ decimals: 2
+ stepSize: 0.1
+ backendValue: backendValues.gammaG
+ sliderIndicatorVisible: true
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ }
- Section {
- anchors.left: parent.left
- anchors.right: parent.right
- caption: qsTr("Minimum Output")
+ Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
+
+ ControlLabel {
+ text: qsTr("G", "green")
+ }
+
+ ExpandingSpacer {}
+ }
+
+ PropertyLabel {}
- ColorEditor {
- caption: qsTr("Minimum Output")
- backendValue: backendValues.minimumOutput
- supportGradient: false
+ SecondColumnLayout {
+ SpinBox {
+ minimumValue: 0
+ maximumValue: 100
+ decimals: 2
+ stepSize: 0.1
+ backendValue: backendValues.gammaB
+ sliderIndicatorVisible: true
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ }
+
+ Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
+
+ ControlLabel {
+ text: qsTr("B", "blue")
+ }
+
+ ExpandingSpacer {}
+ }
}
}
Section {
anchors.left: parent.left
anchors.right: parent.right
- caption: qsTr("Maximum Input")
+ caption: qsTr("Input")
+
+ SectionLayout {
+ PropertyLabel { text: qsTr("Minimum") }
+
+ ColorEditor {
+ backendValue: backendValues.minimumInput
+ supportGradient: false
+ }
- ColorEditor {
- caption: qsTr("Maximum Input")
- backendValue: backendValues.maximumInput
- supportGradient: false
+ PropertyLabel { text: qsTr("Maximum") }
+
+ ColorEditor {
+ backendValue: backendValues.maximumInput
+ supportGradient: false
+ }
}
}
Section {
anchors.left: parent.left
anchors.right: parent.right
- caption: qsTr("Maximum Output")
+ caption: qsTr("Output")
+
+ SectionLayout {
+ PropertyLabel { text: qsTr("Minimum") }
+
+ ColorEditor {
+ backendValue: backendValues.minimumOutput
+ supportGradient: false
+ }
- ColorEditor {
- caption: qsTr("Maximum Output")
- backendValue: backendValues.maximumOutput
- supportGradient: false
+ PropertyLabel { text: qsTr("Maximum") }
+
+ ColorEditor {
+ backendValue: backendValues.maximumOutput
+ supportGradient: false
+ }
}
}
@@ -149,20 +166,21 @@ Column {
caption: qsTr("Caching")
SectionLayout {
- rows: 2
- Label {
+ PropertyLabel {
text: qsTr("Cached")
- toolTip: qsTr("Caches the effect output pixels to improve the rendering "
+ tooltip: qsTr("Caches the effect output pixels to improve the rendering "
+ "performance.")
}
+
SecondColumnLayout {
CheckBox {
- Layout.fillWidth: true
backendValue: backendValues.cached
text: backendValues.cached.valueToString
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
}
}