32 lines
886 B
QML
32 lines
886 B
QML
import QtQml 2.15
|
|
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
//import QtGraphicalEffects 1.0
|
|
|
|
import org.kde.plasma.plasmoid
|
|
import org.kde.plasma.core as PlasmaCore
|
|
import org.kde.kirigami as Kirigami
|
|
Item {
|
|
id: compactRep
|
|
|
|
readonly property bool useCustomButtonImage: (Plasmoid.configuration.useCustomButtonImage && Plasmoid.configuration.customButtonImage.length != 0)
|
|
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
|
|
Kirigami.Icon {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
source: useCustomButtonImage ? Plasmoid.configuration.customButtonImage : Plasmoid.configuration.icon
|
|
smooth: true
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
root.expanded = !root.expanded
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|