diff --git a/indicators/default/package/config/config.qml b/indicators/default/package/config/config.qml index bcfec2765..34f49403c 100644 --- a/indicators/default/package/config/config.qml +++ b/indicators/default/package/config/config.qml @@ -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 diff --git a/shell/package/contents/configuration/pages/AppearanceConfig.qml b/shell/package/contents/configuration/pages/AppearanceConfig.qml index 333a68335..2fcc38963 100644 --- a/shell/package/contents/configuration/pages/AppearanceConfig.qml +++ b/shell/package/contents/configuration/pages/AppearanceConfig.qml @@ -178,7 +178,7 @@ PlasmaComponents.Page { enabled: LatteCore.WindowSystem.compositingActive && plasmoid.configuration.animationsEnabled PlasmaComponents.Label { - text: i18n("Zoom On Hover") + text: i18n("Zoom on hover") horizontalAlignment: Text.AlignLeft }