Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 38 additions & 22 deletions contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -115,33 +115,49 @@ Item {
Plasmoid.compactRepresentation: RowLayout {
id: mainItem
spacing: 0
PlasmaComponents.Label {
id: commandNameLabel
text: commandName
}
Item {
Item{
id: labelContainer
Layout.fillHeight: true
Layout.fillWidth: true
Text {
width: parent.width-parent.height
height: parent.height
id: commandNameLabel
text: commandName
color: PlasmaCore.ColorScope.textColor
minimumPointSize: 5
font.pointSize: 100
fontSizeMode: Text.Fit
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
}
PlasmaCore.IconItem {
id: icon
Item{
id :iconContainer
Layout.fillHeight: true
Layout.fillWidth: true
source: checked ? plasmoid.configuration.iconOn : plasmoid.configuration.iconOff
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
if ((checked && offScriptEnabled) || (!checked && onScriptEnabled)) {
checked = checked == true ? false : true
toggleAction();
Layout.minimumWidth: height
PlasmaCore.IconItem {
id: icon
anchors.fill:parent
source: checked ? plasmoid.configuration.iconOn : plasmoid.configuration.iconOff
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
if ((checked && offScriptEnabled) || (!checked && onScriptEnabled)) {
checked = checked == true ? false : true
toggleAction();
}
}
}
}
BusyIndicator {
id: busy
anchors.fill:parent
visible: scriptRunning
BusyIndicator {
id: busy
anchors.fill:parent
visible: scriptRunning
}
}
}
}
Expand Down