Commit bd5ca6fd authored by Marco Martin's avatar Marco Martin

try a different look for the configure/remove button

parent 3d825bbc
...@@ -62,24 +62,24 @@ Rectangle { ...@@ -62,24 +62,24 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
preventStealing: true preventStealing: true
onClicked: editOverlay.opacity = 0; onClicked: editOverlay.opacity = 0;
Row { PlasmaComponents.ButtonRow {
visible: editOverlay.applet visible: editOverlay.applet
spacing: 0
exclusive: false
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
y: parent.mapFromItem(editOverlay.applet, 0, 0).y + units.gridUnit * 3 y: editOverlay.mapFromItem(editOverlay.applet.parent, 0, editOverlay.applet.y).y + editOverlay.applet.height/2 - height/2
PlasmaComponents.ToolButton { PlasmaComponents.ToolButton {
iconSource: "configure" iconSource: "configure"
text: i18n("Configure..")
flat: false flat: false
onClicked: { onClicked: {
editOverlay.applet.applet.action("configure").trigger(); editOverlay.applet.applet.action("configure").trigger();
editOverlay.opacity = 0; editOverlay.opacity = 0;
} }
} }
Item {
width: units.gridUnit * 10
height: 1
}
PlasmaComponents.ToolButton { PlasmaComponents.ToolButton {
iconSource: "window-close" iconSource: "window-close"
text: i18n("Remove")
flat: false flat: false
onClicked: { onClicked: {
editOverlay.applet.applet.action("remove").trigger(); editOverlay.applet.applet.action("remove").trigger();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment