|
|
@ -454,94 +454,78 @@ PlasmaComponents.Page {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
Layout.topMargin: units.smallSpacing * 4
|
|
|
|
Layout.topMargin: units.smallSpacing * 3
|
|
|
|
isFirstSubCategory: true
|
|
|
|
isFirstSubCategory: true
|
|
|
|
text: i18n("Placement")
|
|
|
|
text: i18n("Placement")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.HeaderSwitch {
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
Layout.minimumHeight: implicitHeight
|
|
|
|
|
|
|
|
text: i18n("Reverse position")
|
|
|
|
|
|
|
|
tooltip: i18n("Reverse indicators position e.g. from bottom to top")
|
|
|
|
|
|
|
|
checked: plasmoid.configuration.reverseLinesPosition
|
|
|
|
|
|
|
|
level: 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onPressed: {
|
|
|
|
|
|
|
|
plasmoid.configuration.reverseLinesPosition = !plasmoid.configuration.reverseLinesPosition;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.HeaderSwitch {
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
Layout.minimumHeight: implicitHeight
|
|
|
|
|
|
|
|
text: i18n("Show indicators for applets")
|
|
|
|
|
|
|
|
tooltip: i18n("Show or hide indicators for applets")
|
|
|
|
|
|
|
|
checked: plasmoid.configuration.indicatorsForApplets
|
|
|
|
|
|
|
|
level: 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onPressed: {
|
|
|
|
|
|
|
|
plasmoid.configuration.indicatorsForApplets = !plasmoid.configuration.indicatorsForApplets;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
|
|
|
|
text: i18nc("active indicator style","Style For Active")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
spacing: 2
|
|
|
|
spacing: 2
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
visible: dialog.expertLevel
|
|
|
|
|
|
|
|
|
|
|
|
property int indicatorType: plasmoid.configuration.activeIndicatorType
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: i18nc("reversed indicators", "Reverse")
|
|
|
|
|
|
|
|
checked: plasmoid.configuration.reverseLinesPosition
|
|
|
|
|
|
|
|
checkable: true
|
|
|
|
|
|
|
|
tooltip: i18n("Reverse indicators position e.g. from bottom to top")
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveGroup {
|
|
|
|
onClicked: {
|
|
|
|
id: activeIndicatorTypeGroup
|
|
|
|
plasmoid.configuration.reverseLinesPosition = !plasmoid.configuration.reverseLinesPosition;
|
|
|
|
onCurrentChanged: {
|
|
|
|
|
|
|
|
if (current.checked) {
|
|
|
|
|
|
|
|
plasmoid.configuration.activeIndicatorType = current.indicatorType;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: i18n("Applets")
|
|
|
|
text: i18nc("line indicator","Line")
|
|
|
|
checked: plasmoid.configuration.indicatorsForApplets
|
|
|
|
checked: parent.indicatorType === indicatorType
|
|
|
|
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: activeIndicatorTypeGroup
|
|
|
|
tooltip: i18n("Show or hide indicators for applets")
|
|
|
|
tooltip: i18n("Show a line indicator for active items")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly property int indicatorType: Latte.Types.LineIndicator
|
|
|
|
onClicked: {
|
|
|
|
|
|
|
|
plasmoid.configuration.indicatorsForApplets = !plasmoid.configuration.indicatorsForApplets;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
Layout.topMargin: units.smallSpacing * 4
|
|
|
|
text: i18nc("dot indicator", "Dot")
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
checked: parent.indicatorType === indicatorType
|
|
|
|
|
|
|
|
checkable: true
|
|
|
|
|
|
|
|
exclusiveGroup: activeIndicatorTypeGroup
|
|
|
|
|
|
|
|
tooltip: i18n("Show a dot indicator for active items")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly property int indicatorType: Latte.Types.DotIndicator
|
|
|
|
Rectangle{
|
|
|
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
|
|
|
width: parent.width * 0.35
|
|
|
|
|
|
|
|
height: 1
|
|
|
|
|
|
|
|
color: theme.textColor
|
|
|
|
|
|
|
|
opacity: 0.3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
LatteExtraControls.HeaderSwitch {
|
|
|
|
enabled: plasmoid.configuration.glowOption!==Latte.Types.GlowNone
|
|
|
|
id: showGlow
|
|
|
|
text: i18n("Glow")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
Layout.minimumHeight: implicitHeight
|
|
|
|
|
|
|
|
Layout.topMargin: units.smallSpacing * 3
|
|
|
|
|
|
|
|
Layout.bottomMargin: units.smallSpacing
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checked: plasmoid.configuration.showGlow
|
|
|
|
|
|
|
|
level: 2
|
|
|
|
|
|
|
|
text: i18n("Glow")
|
|
|
|
|
|
|
|
tooltip: i18n("Enable/disable thickness margins")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onPressed: {
|
|
|
|
|
|
|
|
plasmoid.configuration.showGlow = !plasmoid.configuration.showGlow;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
spacing: 2
|
|
|
|
spacing: 2
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
|
|
|
|
enabled: plasmoid.configuration.showGlow
|
|
|
|
|
|
|
|
|
|
|
|
property int option: plasmoid.configuration.glowOption
|
|
|
|
property int option: plasmoid.configuration.glowOption
|
|
|
|
|
|
|
|
|
|
|
@ -553,17 +537,6 @@ PlasmaComponents.Page {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: i18nc("none glow", "None")
|
|
|
|
|
|
|
|
checked: parent.option === option
|
|
|
|
|
|
|
|
checkable: true
|
|
|
|
|
|
|
|
exclusiveGroup: glowGroup
|
|
|
|
|
|
|
|
tooltip: i18n("Do not show any glow for task/applet indicators")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly property int option: Latte.Types.GlowNone
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
PlasmaComponents.Button {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
text: i18nc("glow only to active task/applet indicators","On Active")
|
|
|
|
text: i18nc("glow only to active task/applet indicators","On Active")
|
|
|
@ -592,7 +565,7 @@ PlasmaComponents.Page {
|
|
|
|
Layout.topMargin: units.smallSpacing
|
|
|
|
Layout.topMargin: units.smallSpacing
|
|
|
|
spacing: 2
|
|
|
|
spacing: 2
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
enabled: plasmoid.configuration.glowOption !== Latte.Types.GlowNone
|
|
|
|
enabled: plasmoid.configuration.showGlow
|
|
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
Layout.minimumWidth: implicitWidth
|
|
|
|
Layout.minimumWidth: implicitWidth
|
|
|
@ -638,6 +611,52 @@ PlasmaComponents.Page {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
|
|
|
|
text: i18nc("active indicator style","Style For Active")
|
|
|
|
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
spacing: 2
|
|
|
|
|
|
|
|
visible: plasmoid.configuration.indicatorStyle === Latte.Types.LatteIndicator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 items")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly property int indicatorType: Latte.Types.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 items")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly property int indicatorType: Latte.Types.DotIndicator
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
LatteExtraControls.SubHeader {
|
|
|
|
enabled: plasmoid.configuration.glowOption!==Latte.Types.GlowNone
|
|
|
|
enabled: plasmoid.configuration.glowOption!==Latte.Types.GlowNone
|
|
|
|
text: i18n("Improvements")
|
|
|
|
text: i18n("Improvements")
|
|
|
|