aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/effects/designer/GlowEffectSpecifics.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/effects/designer/GlowEffectSpecifics.qml')
-rw-r--r--src/imports/effects/designer/GlowEffectSpecifics.qml80
1 files changed, 46 insertions, 34 deletions
diff --git a/src/imports/effects/designer/GlowEffectSpecifics.qml b/src/imports/effects/designer/GlowEffectSpecifics.qml
index 7c7882a..181f807 100644
--- a/src/imports/effects/designer/GlowEffectSpecifics.qml
+++ b/src/imports/effects/designer/GlowEffectSpecifics.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
@@ -40,10 +41,13 @@ Column {
anchors.right: parent.right
caption: qsTr("Glow Color")
- ColorEditor {
- caption: qsTr("Glow Color")
- backendValue: backendValues.color
- supportGradient: false
+ SectionLayout {
+ PropertyLabel { text: qsTr("Glow color") }
+
+ ColorEditor {
+ backendValue: backendValues.color
+ supportGradient: false
+ }
}
}
@@ -53,63 +57,68 @@ Column {
caption: qsTr("Glow")
SectionLayout {
- rows: 2
- Label {
+ PropertyLabel {
text: qsTr("Radius")
- toolTip: qsTr("The softness of the glow. A larger radius causes the edges of the "
+ tooltip: qsTr("The softness of the glow. A larger radius causes the edges of the "
+ "glow to appear more blurry. Depending on the radius value, value "
+ "of the samples should be set to sufficiently large to ensure the "
+ "visual quality.")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.radius
- Layout.preferredWidth: 80
decimals: 1
minimumValue: 0
maximumValue: 100
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
- Label {
+ PropertyLabel {
text: qsTr("Samples")
- toolTip: qsTr("Samples per pixel for edge softening blur calculation. A larger "
+ tooltip: qsTr("Samples per pixel for edge softening blur calculation. A larger "
+ "value produces better quality, but is slower to render. Ideally, "
+ "this value should be twice as large as the highest required "
+ "radius value plus one.")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.samples
- Layout.preferredWidth: 80
decimals: 1
minimumValue: 0
maximumValue: 201
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
- Label {
+ PropertyLabel {
text: qsTr("Spread")
- toolTip: qsTr("The part of the glow color that is strengthened near the source "
+ tooltip: qsTr("The part of the glow color that is strengthened near the source "
+ "edges.")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.spread
- Layout.preferredWidth: 80
decimals: 2
minimumValue: 0
maximumValue: 1
stepSize: 0.1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
}
}
@@ -120,36 +129,39 @@ Column {
caption: qsTr("Caching and Border")
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 {}
}
- Label {
+ PropertyLabel {
text: qsTr("Transparent border")
- toolTip: qsTr("Pads the exterior of the item with a transparent edge, making "
+ tooltip: qsTr("Pads the exterior of the component with a transparent edge, making "
+ "sampling outside the source texture use transparency instead of "
+ "the edge pixels.")
}
+
SecondColumnLayout {
CheckBox {
- Layout.fillWidth: true
backendValue: backendValues.transparentBorder
text: backendValues.transparentBorder.valueToString
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
}
}