diff --git a/containments/desktop/package/contents/ui/ConfigTweaks.qml b/containments/desktop/package/contents/ui/ConfigTweaks.qml --- a/containments/desktop/package/contents/ui/ConfigTweaks.qml +++ b/containments/desktop/package/contents/ui/ConfigTweaks.qml @@ -23,6 +23,7 @@ import QtQuick.Layouts 1.0 import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore Item { id: configExperimental @@ -45,10 +46,36 @@ ColumnLayout { Layout.fillWidth: true - CheckBox { - id: showToolbox - - text: i18n("Show the desktop toolbox") + RowLayout { + CheckBox { + id: showToolbox + + text: i18n("Show the desktop toolbox") + } + + // From: plasma-desktop/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml + // /usr/share/plasma/packages/org.kde.desktoptoolbox/contents/ui/ToolBoxButton.qml + PlasmaCore.FrameSvgItem { + id: backgroundFrame + imagePath: "widgets/translucentbackground" + Layout.alignment: Qt.AlignVCenter + Layout.preferredWidth: toolBoxIcon.size + margins.horizontal + Layout.preferredHeight: toolBoxIcon.size + margins.vertical + + PlasmaCore.SvgItem { + id: toolBoxIcon + anchors.centerIn: parent + property int size: units.iconSizes.small + width: size + height: size + svg: PlasmaCore.Svg { + id: iconSvg + imagePath: "widgets/configuration-icons" + onRepaintNeeded: toolBoxIcon.elementId = iconSvg.hasElement("menu") ? "menu" : "configure" + } + elementId: iconSvg.hasElement("menu") ? "menu" : "configure" + } + } } } }