Commit f14d3719 authored by Nate Graham's avatar Nate Graham
Browse files

[Workspace KCM] Polish up animation slider UI

parent 29310a94
...@@ -47,15 +47,17 @@ KCM.SimpleKCM { ...@@ -47,15 +47,17 @@ KCM.SimpleKCM {
onCheckedChanged: kcm.visualFeedback = checked onCheckedChanged: kcm.visualFeedback = checked
} }
Item {
Kirigami.FormData.isSection: false
}
// We want to show the slider in a logarithmic way. ie // We want to show the slider in a logarithmic way. ie
// move from 4x, 3x, 2x, 1x, 0.5x, 0.25x, 0.125x // move from 4x, 3x, 2x, 1x, 0.5x, 0.25x, 0.125x
// 0 is a special case // 0 is a special case
RowLayout { ColumnLayout {
Kirigami.FormData.label: i18n("Animation speed:") Kirigami.FormData.label: i18n("Animation speed:")
Kirigami.FormData.buddyFor: slider
Controls.Label {
text: i18nc("Animation speed", "Slow")
}
Controls.Slider { Controls.Slider {
id: slider id: slider
Layout.fillWidth: true Layout.fillWidth: true
...@@ -76,10 +78,18 @@ KCM.SimpleKCM { ...@@ -76,10 +78,18 @@ KCM.SimpleKCM {
return -(Math.log(kcm.animationDurationFactor) / Math.log(2)); return -(Math.log(kcm.animationDurationFactor) / Math.log(2));
} }
} }
RowLayout {
Controls.Label {
text: i18nc("Animation speed", "Slow")
}
Item {
Layout.fillWidth: true
}
Controls.Label { Controls.Label {
text: i18nc("Animation speed", "Instant") text: i18nc("Animation speed", "Instant")
} }
} }
}
Connections { Connections {
target: kcm target: kcm
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment