mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-06 16:58:17 +03:00
move reverse active indicator to Tweaks page
This commit is contained in:
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
|
||||
|
@ -219,126 +219,126 @@ PlasmaComponents.Page {
|
||||
//! END: Behavior
|
||||
|
||||
//! BEGIN: Active Indicator
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
ColumnLayout{
|
||||
spacing: units.smallSpacing
|
||||
visible: plasmoid.configuration.advanced
|
||||
Layout.rightMargin: units.smallSpacing * 2
|
||||
|
||||
Header {
|
||||
text: i18n("Active Indicator")
|
||||
}
|
||||
|
||||
RowLayout{
|
||||
spacing: units.smallSpacing
|
||||
GridLayout {
|
||||
Layout.fillWidth: true
|
||||
rowSpacing: units.smallSpacing * 2
|
||||
columnSpacing: units.smallSpacing
|
||||
|
||||
ColumnLayout{
|
||||
spacing: units.smallSpacing
|
||||
columns: 5
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18n("Style: ")
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
property int indicatorType: plasmoid.configuration.activeIndicatorType
|
||||
property int activeIndicator: plasmoid.configuration.activeIndicator
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18n("Applets: ")
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
ExclusiveGroup {
|
||||
id: activeIndicatorTypeGroup
|
||||
onCurrentChanged: {
|
||||
if (current.checked)
|
||||
plasmoid.configuration.activeIndicatorType = current.indicatorType;
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout{
|
||||
spacing: units.smallSpacing
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
Layout.rightMargin: units.smallSpacing * 2
|
||||
spacing: units.smallSpacing
|
||||
|
||||
property int indicatorType: plasmoid.configuration.activeIndicatorType
|
||||
|
||||
ExclusiveGroup {
|
||||
id: activeIndicatorTypeGroup
|
||||
onCurrentChanged: {
|
||||
if (current.checked)
|
||||
plasmoid.configuration.activeIndicatorType = current.indicatorType;
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: i18nc("line indicator","Line")
|
||||
checked: parent.indicatorType === indicatorType
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorTypeGroup
|
||||
tooltip: i18n("Show a line indicator for active tasks/applets")
|
||||
|
||||
readonly property int indicatorType: Latte.Dock.LineIndicator
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: i18nc("dot indicator", "Dot")
|
||||
checked: parent.indicatorType === indicatorType
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorTypeGroup
|
||||
tooltip: i18n("Show a dot indicator for active tasks/applets")
|
||||
|
||||
readonly property int indicatorType: Latte.Dock.DotIndicator
|
||||
}
|
||||
ExclusiveGroup {
|
||||
id: activeIndicatorGroup
|
||||
onCurrentChanged: {
|
||||
if (current.checked)
|
||||
plasmoid.configuration.activeIndicator = current.activeIndicator
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
Layout.rightMargin: units.smallSpacing * 2
|
||||
spacing: units.smallSpacing
|
||||
PlasmaComponents.Label {
|
||||
text: i18n("Style ")
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
|
||||
property int activeIndicator: plasmoid.configuration.activeIndicator
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
ExclusiveGroup {
|
||||
id: activeIndicatorGroup
|
||||
onCurrentChanged: {
|
||||
if (current.checked)
|
||||
plasmoid.configuration.activeIndicator = current.activeIndicator
|
||||
}
|
||||
}
|
||||
text: i18nc("line indicator","Line")
|
||||
checked: parent.indicatorType === indicatorType
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorTypeGroup
|
||||
tooltip: i18n("Show a line indicator for active tasks/applets")
|
||||
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
readonly property int indicatorType: Latte.Dock.LineIndicator
|
||||
}
|
||||
|
||||
text: i18nc("active indicator to no applets", "None")
|
||||
checked: parent.activeIndicator === activeIndicator
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will not show any active applet indicator on its own\n except those the plasma theme provides")
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
readonly property int activeIndicator: Latte.Dock.NoneIndicator
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
text: i18nc("dot indicator", "Dot")
|
||||
checked: parent.indicatorType === indicatorType
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorTypeGroup
|
||||
tooltip: i18n("Show a dot indicator for active tasks/applets")
|
||||
|
||||
text: i18nc("active indicator only to in-house latte applets", "Internals")
|
||||
checked: parent.activeIndicator === activeIndicator
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will show active applet indicators only for applets that have been adjusted\n by it for hovering capabilities e.g. folderview")
|
||||
readonly property int indicatorType: Latte.Dock.DotIndicator
|
||||
}
|
||||
|
||||
readonly property int activeIndicator: Latte.Dock.InternalsIndicator
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
PlasmaComponents.Label{
|
||||
text:" | "
|
||||
}
|
||||
|
||||
text: i18nc("active indicator to all applets", "All")
|
||||
checked: parent.activeIndicator === activeIndicator
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will show active applet indicators for all applets")
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
readonly property int activeIndicator: Latte.Dock.AllIndicator
|
||||
}
|
||||
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")
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.reverseLinesPosition = checked;
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.Label {
|
||||
text: i18n("Applets ")
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
}
|
||||
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: i18nc("active indicator to no applets", "None")
|
||||
checked: parent.activeIndicator === activeIndicator
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will not show any active applet indicator on its own\n except those the plasma theme provides")
|
||||
|
||||
readonly property int activeIndicator: Latte.Dock.NoneIndicator
|
||||
}
|
||||
PlasmaComponents.Button {
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: i18nc("active indicator only to in-house latte applets", "Internals")
|
||||
checked: parent.activeIndicator === activeIndicator
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will show active applet indicators only for applets that have been adjusted\n by it for hovering capabilities e.g. folderview")
|
||||
|
||||
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
|
||||
checkable: true
|
||||
exclusiveGroup: activeIndicatorGroup
|
||||
tooltip: i18n("Latte will show active applet indicators for all applets")
|
||||
|
||||
readonly property int activeIndicator: Latte.Dock.AllIndicator
|
||||
}
|
||||
}
|
||||
}
|
||||
//! END: Active Indicator
|
||||
@ -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…
x
Reference in New Issue
Block a user