fix #978,dont overlap pin/advanced buttons

pull/2/head
Michail Vourlakos 7 years ago
parent a04bee5cc2
commit 8cfbb67d3c

@ -64,40 +64,6 @@ FocusScope {
enabledBorders: dockConfig.enabledBorders
}
PlasmaComponents.ToolButton {
id: pinButton
anchors.right: parent.right
anchors.top: parent.top
//!avoid editMode box shadow
anchors.topMargin: units.smallSpacing
anchors.rightMargin: units.smallSpacing
Layout.fillWidth: false
Layout.fillHeight: false
Layout.preferredWidth: width
Layout.preferredHeight: height
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
iconSource: "window-pin"
checkable: true
width: Math.round(units.gridUnit * 1.25)
height: width
property bool inStartup: true
onClicked: {
plasmoid.configuration.configurationSticker = checked
dockConfig.setSticker(checked)
}
Component.onCompleted: {
checked = plasmoid.configuration.configurationSticker
dockConfig.setSticker(plasmoid.configuration.configurationSticker)
}
}
ColumnLayout {
id: content
@ -246,6 +212,42 @@ FocusScope {
Layout.minimumHeight: advancedSettings.height + 2*units.smallSpacing
}
ColumnLayout {
PlasmaComponents.ToolButton {
id: pinButton
anchors.right: parent.right
anchors.top: parent.top
//!avoid editMode box shadow
anchors.topMargin: units.smallSpacing
anchors.rightMargin: units.smallSpacing
Layout.fillWidth: false
Layout.fillHeight: false
Layout.preferredWidth: width
Layout.preferredHeight: height
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
Layout.bottomMargin: units.smallSpacing * 3
iconSource: "window-pin"
checkable: true
width: Math.round(units.gridUnit * 1.25)
height: width
property bool inStartup: true
onClicked: {
plasmoid.configuration.configurationSticker = checked
dockConfig.setSticker(checked)
}
Component.onCompleted: {
checked = plasmoid.configuration.configurationSticker
dockConfig.setSticker(plasmoid.configuration.configurationSticker)
}
}
RowLayout {
id: advancedSettings
Layout.fillWidth: true
@ -304,6 +306,7 @@ FocusScope {
}
}
}
}
PlasmaComponents.TabBar {
id: tabBar

Loading…
Cancel
Save