mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 05:47:26 +03:00
update latte and plasma indicator config uis
This commit is contained in:
parent
09749612ed
commit
16d01e8025
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user