1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 10:50:30 +03:00

add advance option in configuration window

This commit is contained in:
Michail Vourlakos 2017-04-22 15:42:20 +03:00
parent 2ef64f4ab3
commit 32eff5c167
4 changed files with 32 additions and 10 deletions

View File

@ -123,6 +123,9 @@
<default>0</default>
</entry>
<!-- Config properties -->
<entry name="advanced" type="Bool">
<default>false</default>
</entry>
<entry name="configurationSticker" type="Bool">
<default>false</default>
</entry>

View File

@ -102,6 +102,7 @@ PlasmaComponents.Page {
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
visible: plasmoid.configuration.advanced
PlasmaComponents.Label {
text: i18n("Screen Height Proportion:")
@ -151,6 +152,7 @@ PlasmaComponents.Page {
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
visible: plasmoid.configuration.advanced
PlasmaComponents.Label {
text: i18n("Applets Distance:")
@ -332,6 +334,7 @@ PlasmaComponents.Page {
Layout.alignment: Qt.AlignHCenter
text: i18n("Shadows")
checked: plasmoid.configuration.panelShadows
visible: plasmoid.configuration.advanced
onClicked: {
plasmoid.configuration.panelShadows = checked
@ -346,6 +349,7 @@ PlasmaComponents.Page {
text: i18n("Solid")
checked: plasmoid.configuration.solidPanel
enabled: showBackground.checked
visible: plasmoid.configuration.advanced
onClicked: {
plasmoid.configuration.solidPanel = checked
@ -399,6 +403,7 @@ PlasmaComponents.Page {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
visible: plasmoid.configuration.advanced
PlasmaComponents.Label {
text: i18n("Transparency: ")
@ -444,6 +449,7 @@ PlasmaComponents.Page {
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
visible: plasmoid.configuration.advanced
Header {
text: i18n("Length")

View File

@ -23,6 +23,7 @@ import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import QtQuick.Window 2.2
import QtQuick.Controls.Styles 1.4 as Styles
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
@ -141,20 +142,28 @@ PlasmaCore.FrameSvgItem {
}
}
PlasmaComponents.Label {
id: verLabel
RowLayout {
Layout.fillWidth: true
Layout.rightMargin: units.smallSpacing
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
font.family: "monospace"
font.pointSize: 0.8 * theme.defaultFont.pointSize
font.bold: true
opacity: 0.4
text: i18n("ver:") + Qt.application.version
horizontalAlignment: Text.AlignRight
PlasmaComponents.Label {
Layout.fillWidth: true
Layout.alignment: Qt.AlignRight
}
PlasmaComponents.Label {
text: i18n("Advanced")
Layout.alignment: Qt.AlignRight
opacity: plasmoid.configuration.advanced ? 1 : 0.35
}
Switch {
id: advancedSwitch
checked: plasmoid.configuration.advanced
onPressedChanged: {
if(pressed)
plasmoid.configuration.advanced = !checked;
}
}
}
}
@ -180,6 +189,8 @@ PlasmaCore.FrameSvgItem {
PlasmaComponents.TabButton {
text: i18n("Tweaks")
tab: tweaksPage
visible: plasmoid.configuration.advanced
}
}

View File

@ -151,6 +151,7 @@ PlasmaComponents.Page {
RowLayout {
Layout.leftMargin: units.smallSpacing * 2
visible: plasmoid.configuration.advanced
PlasmaComponents.Label {
text: i18n("On middle-click:")
@ -170,6 +171,7 @@ PlasmaComponents.Page {
RowLayout {
Layout.leftMargin: units.smallSpacing * 2
spacing: units.smallSpacing
visible: plasmoid.configuration.advanced
PlasmaComponents.ComboBox {
id: modifier