support two types of active indicator

pull/2/head
Michail Vourlakos 7 years ago
parent eab02204e1
commit 89cd1c30ab

@ -125,6 +125,14 @@
</choices>
<default>1</default>
</entry>
<entry name="activeIndicatorType" type="Enum">
<label>Active indicator style</label>
<choices>
<choice name="LineIndicator"/>
<choice name="DotIndicator"/>
</choices>
<default>0</default>
</entry>
<entry name="maxLength" type="Int">
<default>100</default>
</entry>

@ -93,6 +93,12 @@ public:
};
Q_ENUM(ActiveAppletIndicator)
enum ActiveIndicatorType {
LineIndicator = 0,
DotIndicator = 1
};
Q_ENUM(ActiveIndicatorType)
enum LaunchersGroup {
UniqueLaunchers = 0,
LayoutLaunchers = 1,

@ -563,8 +563,6 @@ PlasmaComponents.Page {
spacing: 2
ColumnLayout{
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
PlasmaComponents.CheckBox {
id: showAppletShadow
text: i18nc("show applet shadow","Show")
@ -578,7 +576,6 @@ PlasmaComponents.Page {
}
}
PlasmaComponents.Button{
id: backColorBtn
Layout.alignment: Qt.AlignLeft
@ -823,9 +820,6 @@ PlasmaComponents.Page {
spacing: 2
ColumnLayout{
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
RowLayout {
Layout.fillWidth: true
spacing: 2

@ -93,8 +93,8 @@ PlasmaComponents.Page {
onClicked: {
plasmoid.configuration.solidBackgroundForMaximized = checked;
// plasmoid.configuration.disablePanelShadowForMaximized = false;
// hideShadowsOnMaximizedChk.checked = false;
// plasmoid.configuration.disablePanelShadowForMaximized = false;
// hideShadowsOnMaximizedChk.checked = false;
}
}
@ -107,8 +107,8 @@ PlasmaComponents.Page {
onClicked: {
plasmoid.configuration.backgroundOnlyOnMaximized = checked;
// plasmoid.configuration.disablePanelShadowForMaximized = false;
// hideShadowsOnMaximizedChk.checked = false;
// plasmoid.configuration.disablePanelShadowForMaximized = false;
// hideShadowsOnMaximizedChk.checked = false;
}
}
@ -120,8 +120,8 @@ PlasmaComponents.Page {
onClicked: {
plasmoid.configuration.disablePanelShadowForMaximized = checked;
// plasmoid.configuration.backgroundOnlyOnMaximized = false;
// onlyOnMaximizedChk.checked = false;
// plasmoid.configuration.backgroundOnlyOnMaximized = false;
// onlyOnMaximizedChk.checked = false;
}
}
}
@ -225,62 +225,118 @@ PlasmaComponents.Page {
visible: plasmoid.configuration.advanced
Header {
text: i18n("Active Applet Indicator")
text: i18n("Active Indicator")
}
RowLayout{
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: 2
RowLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
ColumnLayout{
spacing: units.smallSpacing
property int activeIndicator: plasmoid.configuration.activeIndicator
PlasmaComponents.Label {
text: i18n("Style: ")
horizontalAlignment: Text.AlignLeft
}
ExclusiveGroup {
id: activeIndicatorGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.activeIndicator = current.activeIndicator
}
PlasmaComponents.Label {
text: i18n("Applets: ")
horizontalAlignment: Text.AlignLeft
}
}
ColumnLayout{
spacing: units.smallSpacing
PlasmaComponents.Button {
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;
}
}
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("line indicator","Line")
checked: parent.indicatorType === indicatorType
checkable: true
exclusiveGroup: activeIndicatorTypeGroup
tooltip: i18n("Show a line 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.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 activeIndicator: Latte.Dock.InternalsIndicator
readonly property int indicatorType: Latte.Dock.DotIndicator
}
}
PlasmaComponents.Button {
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
property int activeIndicator: plasmoid.configuration.activeIndicator
ExclusiveGroup {
id: activeIndicatorGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.activeIndicator = current.activeIndicator
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
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")
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.AllIndicator
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
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
}
}
}
}

Loading…
Cancel
Save