|
|
|
@ -34,7 +34,7 @@ ColumnLayout {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
|
|
LatteComponents.SubHeader {
|
|
|
|
|
text: i18nc("active indicator style","Style For Active")
|
|
|
|
|
text: i18nc("indicator style","Style")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
@ -71,7 +71,7 @@ ColumnLayout {
|
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
|
Layout.minimumWidth: parent.buttonSize
|
|
|
|
|
Layout.maximumWidth: Layout.minimumWidth
|
|
|
|
|
text: i18nc("dot indicator", "Dot")
|
|
|
|
|
text: i18nc("dots indicator", "Dots")
|
|
|
|
|
checked: parent.indicatorType === indicatorType
|
|
|
|
|
checkable: false
|
|
|
|
|
exclusiveGroup: activeIndicatorTypeGroup
|
|
|
|
@ -87,6 +87,44 @@ ColumnLayout {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
spacing: units.smallSpacing
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
|
text: i18n("Length padding")
|
|
|
|
|
horizontalAlignment: Text.AlignLeft
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LatteComponents.Slider {
|
|
|
|
|
id: lengthIntMarginSlider
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
|
|
value: Math.round(indicator.configuration.lengthPadding * 100)
|
|
|
|
|
from: 0
|
|
|
|
|
to: maxMargin
|
|
|
|
|
stepSize: 1
|
|
|
|
|
wheelEnabled: false
|
|
|
|
|
|
|
|
|
|
readonly property int maxMargin: 80
|
|
|
|
|
|
|
|
|
|
onPressedChanged: {
|
|
|
|
|
if (!pressed) {
|
|
|
|
|
indicator.configuration.lengthPadding = value / 100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
|
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(currentValue)
|
|
|
|
|
horizontalAlignment: Text.AlignRight
|
|
|
|
|
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
|
|
|
|
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
|
|
|
|
|
|
|
|
|
readonly property int currentValue: lengthIntMarginSlider.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LatteComponents.HeaderSwitch {
|
|
|
|
|
id: glowEnabled
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
@ -204,48 +242,6 @@ ColumnLayout {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LatteComponents.SubHeader {
|
|
|
|
|
text: i18n("Padding")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
spacing: units.smallSpacing
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
|
text: i18n("Length")
|
|
|
|
|
horizontalAlignment: Text.AlignLeft
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LatteComponents.Slider {
|
|
|
|
|
id: lengthIntMarginSlider
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
|
|
value: Math.round(indicator.configuration.lengthPadding * 100)
|
|
|
|
|
from: 0
|
|
|
|
|
to: maxMargin
|
|
|
|
|
stepSize: 1
|
|
|
|
|
wheelEnabled: false
|
|
|
|
|
|
|
|
|
|
readonly property int maxMargin: 80
|
|
|
|
|
|
|
|
|
|
onPressedChanged: {
|
|
|
|
|
if (!pressed) {
|
|
|
|
|
indicator.configuration.lengthPadding = value / 100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
|
text: i18nc("number in percentage, e.g. 85 %","%0 %").arg(currentValue)
|
|
|
|
|
horizontalAlignment: Text.AlignRight
|
|
|
|
|
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
|
|
|
|
|
Layout.maximumWidth: theme.mSize(theme.defaultFont).width * 4
|
|
|
|
|
|
|
|
|
|
readonly property int currentValue: lengthIntMarginSlider.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
spacing: 0
|
|
|
|
|
visible: indicator.latteTasksArePresent
|
|
|
|
|