summaryrefslogtreecommitdiffstats
path: root/templates/ToolButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ToolButton.qml')
-rw-r--r--templates/ToolButton.qml24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/ToolButton.qml b/templates/ToolButton.qml
index 3b9d463..4c8b205 100644
--- a/templates/ToolButton.qml
+++ b/templates/ToolButton.qml
@@ -10,17 +10,17 @@ T.ToolButton {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
- spacing: config.spacing || 0
+ spacing: __config.spacing || 0
- topPadding: config.topPadding || 0
- bottomPadding: config.bottomPadding || 0
- leftPadding: config.leftPadding || 0
- rightPadding: config.rightPadding || 0
+ topPadding: __config.topPadding || 0
+ bottomPadding: __config.bottomPadding || 0
+ leftPadding: __config.leftPadding || 0
+ rightPadding: __config.rightPadding || 0
- topInset: -config.topInset || 0
- bottomInset: -config.bottomInset || 0
- leftInset: -config.leftInset || 0
- rightInset: -config.rightInset || 0
+ topInset: -__config.topInset || 0
+ bottomInset: -__config.bottomInset || 0
+ leftInset: -__config.leftInset || 0
+ rightInset: -__config.rightInset || 0
readonly property string __currentState: [
control.checked && "checked",
@@ -28,9 +28,9 @@ T.ToolButton {
control.enabled && !control.down && control.hovered && "hovered",
down && "pressed"
].filter(Boolean).join("_") || "normal"
- readonly property var config: Config.controls.toolbutton[__currentState] || {}
+ readonly property var __config: Config.controls.toolbutton[__currentState] || {}
- // TODO: Set this from the config?
+ // TODO: Set this from the __config?
icon.width: 17
icon.height: 17
icon.color: control.palette.buttonText
@@ -47,6 +47,6 @@ T.ToolButton {
}
background: StyleImage {
- imageConfig: control.config.background
+ imageConfig: control.__config.background
}
}