move reverse active indicator to Tweaks page

pull/2/head
Michail Vourlakos 7 years ago
parent e92bc99223
commit 07abb1c58d

@ -62,17 +62,6 @@ PlasmaComponents.Page {
}
}
PlasmaComponents.CheckBox {
id: reverseLinesPosition
Layout.leftMargin: units.smallSpacing * 2
text: i18n("Reverse position for lines and dots")
checked: plasmoid.configuration.reverseLinesPosition
onClicked: {
plasmoid.configuration.reverseLinesPosition = checked
}
}
PlasmaComponents.CheckBox {
id: dotsOnActive
Layout.leftMargin: units.smallSpacing * 2

@ -220,41 +220,22 @@ PlasmaComponents.Page {
//! BEGIN: Active Indicator
ColumnLayout{
Layout.fillWidth: true
spacing: units.smallSpacing
visible: plasmoid.configuration.advanced
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Active Indicator")
}
RowLayout{
spacing: units.smallSpacing
ColumnLayout{
spacing: units.smallSpacing
PlasmaComponents.Label {
text: i18n("Style: ")
horizontalAlignment: Text.AlignLeft
}
PlasmaComponents.Label {
text: i18n("Applets: ")
horizontalAlignment: Text.AlignLeft
}
}
ColumnLayout{
spacing: units.smallSpacing
RowLayout {
GridLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
rowSpacing: units.smallSpacing * 2
columnSpacing: units.smallSpacing
columns: 5
property int indicatorType: plasmoid.configuration.activeIndicatorType
property int activeIndicator: plasmoid.configuration.activeIndicator
ExclusiveGroup {
id: activeIndicatorTypeGroup
@ -264,6 +245,19 @@ PlasmaComponents.Page {
}
}
ExclusiveGroup {
id: activeIndicatorGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.activeIndicator = current.activeIndicator
}
}
PlasmaComponents.Label {
text: i18n("Style ")
horizontalAlignment: Text.AlignLeft
}
PlasmaComponents.Button {
Layout.fillWidth: true
@ -275,6 +269,7 @@ PlasmaComponents.Page {
readonly property int indicatorType: Latte.Dock.LineIndicator
}
PlasmaComponents.Button {
Layout.fillWidth: true
@ -286,24 +281,29 @@ PlasmaComponents.Page {
readonly property int indicatorType: Latte.Dock.DotIndicator
}
PlasmaComponents.Label{
text:" | "
}
RowLayout {
PlasmaComponents.Button {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
property int activeIndicator: plasmoid.configuration.activeIndicator
text: i18nc("reverse the position of the active indicator e.g. from bottom to top", "Reverse")
checked: plasmoid.configuration.reverseLinesPosition
checkable: true
tooltip: i18n("Reverse the position of the active indicator e.g. from bottom to top")
ExclusiveGroup {
id: activeIndicatorGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.activeIndicator = current.activeIndicator
onClicked: {
plasmoid.configuration.reverseLinesPosition = checked;
}
}
PlasmaComponents.Label {
text: i18n("Applets ")
horizontalAlignment: Text.AlignLeft
}
PlasmaComponents.Button {
Layout.fillWidth: true
@ -326,8 +326,10 @@ PlasmaComponents.Page {
readonly property int activeIndicator: Latte.Dock.InternalsIndicator
}
PlasmaComponents.Button {
Layout.fillWidth: true
Layout.columnSpan: 2
text: i18nc("active indicator to all applets", "All")
checked: parent.activeIndicator === activeIndicator
@ -339,8 +341,6 @@ PlasmaComponents.Page {
}
}
}
}
}
//! END: Active Indicator
//! BEGIN: Extra Actions
@ -356,7 +356,7 @@ PlasmaComponents.Page {
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
spacing: 2
spacing: units.smallSpacing
PlasmaComponents.Button {
iconSource: "distribute-horizontal-x"

Loading…
Cancel
Save