Skip to content
Draft
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions contents/ui/main.qml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.plasmoid
import org.kde.plasma.components as PlasmaComponents
import org.kde.plasma.plasma5support as Plasma5Support

Item {
PlasmaCore.DataSource {
PlasmoidItem {
Plasma5Support.DataSource {
id: keystateSource
engine: "keystate"
connectedSources: ["Caps Lock", "Num Lock", "Scroll Lock"]
}
Plasmoid.compactRepresentation: PlasmaComponents.Label {
compactRepresentation: PlasmaComponents.Label {
id: mainLabel
anchors.centerIn: parent
Layout.minimumWidth: units.gridUnit * 4
Expand Down Expand Up @@ -40,7 +40,7 @@ Item {
return text
}
}
Plasmoid.fullRepresentation: Item {
fullRepresentation: Item {
Layout.minimumWidth: units.gridUnit * 6
Layout.minimumHeight: units.gridUnit * 6
PlasmaComponents.Label {
Expand Down
15 changes: 0 additions & 15 deletions metadata.desktop

This file was deleted.

20 changes: 20 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"KPlugin": {
"Authors": [
{
"Email": "yuenhoe86@gmail.com",
"Name": "Lim Yuen Hoe"
}
],
"Description": "Shows Caps Lock/Num Lock State",
"Id": "com.yuenhoe.lockstate",
"License": "GPL",
"Name": "Key Lock State",
"ServiceTypes": [
"Plasma/Applet"
],
"Version": "1.1",
"Website": "http://techbase.kde.org"
},
"X-Plasma-API-Minimum-Version": "6.0"
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**Plasma 5 applet that shows the state of Caps/Num Locks**
**Plasma 6 applet that shows the state of Caps/Num Locks**

To install:

Expand Down